JAXWS « wsdl « Java Enterprise Q&A





1. Working with large wsdl, can we trim it?    stackoverflow.com

My webservice provider give me a large WSDL file, but we are going to use only a few function inside. I believe that the large WSDL have negative impact to the application ...

2. JAX-WS Loading WSDL from jar    stackoverflow.com

I'm writing a fat client that makes use of a SOAP service for some features (bug reporting etc.) I've got JAX-WS working fine, but by default (in netbeans at least) it fetches ...

3. What happens to all the hard-coded URIs when I move a Web Service?    stackoverflow.com

I'm developing a test WS with JAX-WS and the demo works fine but if I try to move it in production there are a lot of occurences of the URL of ...

4. When defining a message part (wsdl:part) can the message-type attribute 'type' be used to refer to a wsdl:fault?    stackoverflow.com

I am trying to consume a third party WSDL using the Weblogic 10.3 clientgen ant task (which wraps wsimport). When doing this I get the following error:

[clientgen] [ERROR] in ...

5. Any way to generate WSDL documentation from Javadoc with JAX-WS?    stackoverflow.com

I'm hoping that an extension of some kind is available that does this (although I suppose that my hope is foolishly optimistic).

   /**
     * <p>
 ...

6. java bean to wsdl - how to make fields nillable?    stackoverflow.com

I'm using JAX-WS api for wsdl generation. Java-bean class is something like:

public class MyBean {
    private String nullableField;
    private String notNullableField;

    // ...

7. How to specify name of string argument of web-service method    stackoverflow.com

I have a web-service with method signature like this:

public RetType doIt(String description){
   return null;
}
After wsdl is generated I see that (in wsdl) method doIt have argument name arg0. Is ...

8. Invoke webservice using jaxws when the wsdl has more than one service    stackoverflow.com

I'm trying to get hold of the FindService on this wsdl using jaxws. I generated the classes just fine using wsimport. But when i do:

FindService findService = new FindService();
i get the ...

9. Jaxws notifications    stackoverflow.com

Could you please help in the following? Is there an acceptable design guideline to implement WS Notification Messaging in java? My scenario is the following: a web service client makes a ...





10. Accessing a password-protected WSDL in Weblogic when calling a web service    stackoverflow.com

We're using Spring and JAXWS-generated client classes to access web services in a weblogic-deployed app. The WSDL defining the web service is remote and password-protected (basic http authentication). In a unit ...

11. How to use local wsdl file in generated service code (jax-ws)    stackoverflow.com

It generates URL with http code, how do I change it to local file so that later web services could be packed to jar and this jar will be used as library. ...

12. Using JAX-WS, how do I have multiple ports inside one wsdl?    stackoverflow.com

I would like to define 5 classes with an @WebService annotation on them and use wsgen to create a single wsdl for all of them. Each class would be its ...

13. How do I access a password-protected WSDL using JAXWS without using default Authenticator?    stackoverflow.com

wsdlLocation below is password protected, but paranoia makes me uncomfortable with having set a default Authenticator for the application. How can I set authentication without using a default Authenticator?

protected Orders getOrdersPort(String ...

14. Retrieving WSDL file from secure service    stackoverflow.com

I have a Web Service developed with JAX-WS. I have secured the web service with BASIC authentication configured in Tomcat. When I try to access the web service using a Java ...

15. How do I deal with WS-Security when all I have is a wsdl?    stackoverflow.com

I'm trying to develop a stand-alone client app that uses web services in a Glassfish container (Metro). About all I have to work from is a wsdl for the wervices I'm ...

16. WSDL schemaLocation incorrect when jax-ws web service is outside firewall    stackoverflow.com

I have created a web service using IntelliJ and Jax-WS. When I deploy this web service from my machine and hit the wsdl using my localhost url, it works fine and ...





17. Try all available WSDL IPs with JAX-WS    stackoverflow.com

I'm using JAX-WS to open a service port. When the DNS exposes two IPs for the DNS entry (of the WSDL), the Service tries to use only the first - ...

18. JavaME MIDlet Will Not Clear Variables?    stackoverflow.com

I have written a JavaME program that accesses a web service to retrieve values, the web service is running on a tomcat server. I am facing a very strange problem, whenever i ...

19. JAX-WS Outside of App Server    stackoverflow.com

I'm trying to learn about JAX-WS, specifically using WSDLs in Java. I want to use a small footprint WebServer/Tool (Not a full blown App Server). Any suggestions on where to start? ...

20. Using WSDL, can we generate other public methods inside a class that is a parameter of a Web Service Method?    stackoverflow.com

Sorry, if the question does not clarify exactly what i need....Please read ahead for the requirement. I am using JAX-WS 2.2.3. I have implemented a web service class which has a method int ...

21. Exception while initializing webservice using jax-ws    stackoverflow.com

can any one please tell me what the problem is i am trying to create a new web service client in my client side project which already has a web service ...

22. java wsimport problem with wsdl (jax-ws)    stackoverflow.com

Can someone help me what is wrong with WSDL file.

wsimport -d test uri_to_my_wsdl
parsing WSDL...


[WARNING] src-resolve: Cannot resolve the name 'ns1:HeaderType' to a(n) 'type definition' component.
  line 27 of uri_to_my_wsdl=anotherWS.wsdl#types?schema2

[ERROR] A ...

23. Does a WSDL file need to be published on a server to consume its services?    stackoverflow.com

I had a WSDL file locally for a service. I used it to generate the my java proxy client using eclipse. Now when I invoke this service, it fails. The error ...

24. error parsing wsdl with wsimport    stackoverflow.com

When trying to generate classes from https://api.betfair.com/global/v3/BFGlobalService.wsdl with wsimport from JAX-WS RI 2.2.4-b01 i get this warning:

[WARNING] src-resolve: Cannot resolve the name 'types:LoginReq' to a(n) 'type definition' component.
  ...

25. import wsdl from jax-ws to .net - nillable Long    stackoverflow.com

I have a web service which exposes wsdl using jax-ws. one of the parameters to the function in Long, which of course can except null. the client is .Net, and here is ...

26. Simple example of consuming wsdl webservice with Java?    stackoverflow.com

I'm trying to consume a WSDL webservice in Java, in what will eventually be an Eclipse plugin. I can use File>New>Other to select "Web Service Client" which works, but it generates a ...

27. Unable to create JAXBContext creating my wsdl    stackoverflow.com

I am trying to generate my WSDL for webservices but I get this error:

Note:   ap round: 2
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to create JAXBContext
     ...

28. WSDL: generate method with no parameters    stackoverflow.com

I try to generate webservice using WSDL file. There is one method with no input parameter. I did it the following way:

...
<types>
<xsd:schema targetNamespace="http://api.registration.company.com"
    xmlns:base="http://base.api.registration.company.com">
   ...

29. Hiding enum element from JAX-WS generated WSDL    stackoverflow.com

I have a enum class like blow. I'm using JAX-WS to generate WSDL, but I want to hide the DELETED enum from the client. Is there a way to do that? ...

30. JBoss AS7: Web Service connection refused    stackoverflow.com

I am using ProcessBuilder on JBOSS AS7 to run an external JAR which then calls Endpoint.publish() to create a JAX-WS Web Service. I am using a Stateful bean to access the ...

31. JAX-WS - Debugging null parameters    stackoverflow.com

I imported a WSDL with wsimport and deployed the result in Glassfish. Now when I send a SOAP request (created from this WSDL with SoapUI) the message is processed and routed to ...

32. Consuming web service from a remote computer    stackoverflow.com

I have a desktop application built with jdk 6 which publishes web services to be consumed by a web application. So far I've had no problem while both applications are running ...

33. specify a timeout to the initial WSDL retrieval with JAX-WS?    stackoverflow.com

What is the best way to specify a timeout to the initial WSDL retrieval with JAX-WS? It seems possible to specify timeouts for the Web Services calls using:

((BindingProvider) port).getRequestContext().put(BindingProviderProperties.CONNECT_TIMEOUT, 2000);
((BindingProvider) port).getRequestContext().put(BindingProviderProperties.REQUEST_TIMEOUT, 2000);
but ...

34. Instantiate JAX-WS service without downloading WSDL?    stackoverflow.com

I have a web service that I have JAX-WS generated client bindings as below:

// web service client generated by JAX-WS
@WebServiceClient( ... )
public class WebService_Service extends Service {

    public ...

35. WSDL parser in JEE 5 or JAXWS    coderanch.com

36. JAX-WS WSDL problem.    coderanch.com

38. How to generate WSDL file for any JAX-WS?    coderanch.com

Hello! The way I usually choose when to generate a WSDL starting from Java code is an Ant script. Enclosed is an example: