Category Archives: Web Services

SOAP Version Mismatch: SOAP Version "SOAP 1.2 Protocol" in request does not match the SOAP version "SOAP 1.1 Protocol" of the Web service.

We were getting the below error in our project, when trying to invoke a web service. [Server:server-one] 07:29:12,927 ERROR [stderr] (http-/10.99.12.28:8080-13) org.springframework.ws.soap.client.SoapFaultClientException: [ISS.0088.9168] SOAP Version Mismatch: SOAP Version “SOAP 1.2 Protocol” in request does not match the SOAP version “SOAP … Continue reading

Posted in Spring, Web Services | Leave a comment

How to put time restriction on web service function call?

Add the following 2 imports import com.sun.xml.ws.developer.JAXWSProperties;import javax.xml.ws.BindingProvider; Just add this before the function call where you call web service. ((BindingProvider)port).getRequestContext() .put(JAXWSProperties.CONNECT_TIMEOUT, 100); ((BindingProvider)port).getRequestContext() .put(JAXWSProperties.REQUEST_TIMEOUT, 100);

Posted in Web Services | 3 Comments

How to configure end point WSDL URL at runtime?

Configure WSDL URL at run-time : http://biemond.blogspot.in/2009/04/changing-wsdl-url-endpoint-in-jax-ws.html

Posted in Web Services, WSDL | Leave a comment

How to invoke a web service using JDeveloper (given a WSDL)

How to call a web service from Jdeveloper (provided WSDL file or URL) Create a New Empty Project

Posted in JDeveloper, Web Services | Leave a comment

The prefix "jaxb" for element "jaxb:globalBindings" is not bound.

I’m using xjc to compile XML Schema into JAXB objects and thecompiling is fine unless I try to define jaxb bindings. For instance,if I try adding this code in the schema: bindingStyle=”modelGroupBinding”choiceContentProperty=”true” ><jaxb:javaType name="short"xmlType=”xs:long”printMethod=”javax.xml.bind.DatatypeConverter.printShort”parseMethod=”javax.xml.bind.DatatypeConverter.parseShort”/> xjc complains with:[ERROR] The prefix “jaxb” … Continue reading

Posted in J2EE, Java, Web Services, WSDL | Tagged , , | Leave a comment

xsd:date maps to java.util.Calendar

My schema has an element of type xs:date, which jaxb maps to a java.util.Calendar. If I create a Calendar object with Calendar.getInstance(), it marshalls to “2003-11-24-05:00”. How can I get it to marshall to just “2003-11-24”? SOLUTION:Write a converter class … Continue reading

Posted in Web Services, WSDL | Tagged , , , , | Leave a comment

Building Java Web Services with NetBeans 7.0

Create web services using Netbeans 7.0 Here is a complete tutorial with screenshots and very well explained. http://www.theserverside.com/tip/Building-Java-Web-services-with-NetBeans-7

Posted in Netbeans, Web Services | Leave a comment