Yes, you were right!
The problem was in the castor mapping.xml file. The resource object marshalling did not contain the qualified namespace.
Thank you very much for your reply!
Ivan
Yes, you were right!
The problem was in the castor mapping.xml file. The resource object marshalling did not contain the qualified namespace.
Thank you very much for your reply!
Ivan
Even I get the same error what did u fix in the mapping.xml to fix the name space issue?
Thanks
Can anyone tell me how this problem is solved , I really tried hard but in vain.
I'm getting the following error in my Tomcat logfile:
WARNING: No endpoint mapping found for [SaajSoapMessage AGSRequest]
The message I am sending is as follows:
POST /JC3IEDM_App/agsToJc3iedm.ws HTTP/1.1
Accept-Encoding: gzip
Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
SOAPAction: ""
Content-Type: text/xml; charset=utf-8
Content-Length: 209
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_14
Host: localhost:8082
Connection: keep-alive
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><AGSRequest>
<Base64AGS>PEFHUy8+</Base64AGS>
</AGSRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
This is being automatically generated by the WebServiceTemplate. I notice that the target namespace is not specified in this message even though it is in the xml for the request as follows:
DOMSource request = new DOMSource(xml);
DOMResult result = new DOMResult();
webServiceTemplate.sendSourceAndReceiveToResult(re quest, result);
xml.toString() on the above gives us:
<AGSRequest xmlns="com.detica.jc3iedm">
<Base64AGS>PEFHUy8+</Base64AGS>
</AGSRequest>
My Endpoint is mapped with the following code:
@PayloadRoot(localPart="AGSRequest", namespace="com.detica.jc3iedm")
And the spring-ws-servlet.xml is as follows:
<bean id="agsToJc3iedm" class="org.springframework.ws.wsdl.wsdl11.DefaultW sdl11Definition"
portTypeName="agsToJc3iedm"
p:locationUri="http://localhost:8082/JC3IEDM_App/agsToJc3iedm.ws"
p:targetNamespace="com.detica.jc3iedm">
<property name="schema">
<bean class="org.springframework.xml.xsd.SimpleXsdSchema ">
<property name="xsd" value="classpath:/AGSRequest.xsd"/>
</bean>
</property>
</bean>
<bean id="agsToJc3iedmEndpoint"
class="com.detica.jc3iedm.webservice.AgsToJc3iedmE ndpoint" />
<bean id="payloadMapping"
class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping" />
Any help would be really appreciated as I am completekly out of ideas now.
I did the following:
set in the XSD xmlns:myws="http://localhost:8080/myws/schemas"
set in WSDL targetNamespace, XSD targetNamespace and in the message xmlns:
"http://localhost:8084/myws/schemas"
finally I confirmed that the message I send to the webservice match the XSD message definition (if not, the EndPoint will complaint).
Hope this help
V
If you're using JAXB, make sure Spring's OXM jars in your lib. (spring-oxm-1.5.6.jar and tiger version)
This is the most probably you guys issues if you're able to get WSDL but not endPoint. Hope it helps.-Cage
Hi, any one knows about this error.
SEVERE: Received 'org.springframework.ws.client.WebServiceTransport Exception' when invoking action listener '#{userBean.doAdd}' for component 'j_id_jsp_497945869_56'
Apr 25, 2011 12:19:14 AM javax.faces.event.MethodExpressionActionListener processAction
SEVERE: org.springframework.ws.client.WebServiceTransportE xception: Not Found [404]
at org.springframework.ws.client.core.WebServiceTempl ate.handleError(WebServiceTemplate.java:622)
at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:546)
at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:496)
at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:451)
at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:395)
at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:380)
at savari.csm.ws.client.WebServiceClient.customSendAn dReceive(WebServiceClient.java:43)
-----
I am just trying to call a webservice using webServicetemplate from my application. If I access the service throw browser, the service seems to be working fine, But when calling from application it shows the above error.
I have also posted the configuration snippet also.
<bean id="loginService" class="savari.csm.service.LoginServiceImpl">
<property name="userDetailsDAO">
<ref bean="userDetailsDAO" />
</property>
<property name="passwordWebService">
<ref bean="passwordWebService" />
</property>
<property name="webServiceClient">
<ref bean="webServiceClient" />
</property>
</bean>
<bean id="passwordWebService" class="org.springframework.remoting.jaxrpc.JaxRpcP ortProxyFactoryBean">
<property name="serviceInterface">
<value>savari.csm.service.RemotePasswordService</value>
</property>
<property name="wsdlDocumentUrl">
<value>http://localhost:9090/myServices/passwordRequest.wsdl</value>
</property>
<property name="namespaceUri">
<value>http://myservice.com/user/schemas</value>
</property>
<property name="serviceName">
<value>PasswordRequestService</value>
</property>
<property name="portName">
<value>PasswordRequestSoap11</value>
</property>
</bean>
<bean id="webServiceClient" class="savari.csm.ws.client.WebServiceClient">
<property name="defaultUri" value="http://myservice.com/user/schemas/PasswordRequestService"/>
</bean>
Please some one help.