Re: WSDL message Validation with part element
When you consider the soap message it only has the detail element. http://ws.example.com/types";> UserException:id is not valid So only the element (in part ) details present in the soap message. In Axis2 what we does is keep a map for fault element qname and fault message name (basically generated class) in you case client must have this map which can be populated using the wsdl. key -> elementQName value --> faultMessageQname using this map client can resolve the fault message corresponding to the received element QName. Please see an Axis2 generated Stub. but this method has one problem. i.e Two fault messages can refer to the same elementQname. eg. for this case we can't use the above technique( Acutally Axis2 does not support this as well) for this case we have to use the fault action to map the fault to correct fault message. Amila. On 7/26/07, jaypee_p <[EMAIL PROTECTED]> wrote: My consumer is SAP XI client. Below is the sequence for fault message is processed in XI XI Sequence 1.First step is to identify the wsdl:Message element with the namespace http://ws.example.com/service 2.The next step is to go to the part element in http://ws.example.com/types and map the fault message. To be simple in your case http://ws.example.com/service is the namespace of Fault Message and http://ws.example.com/types is the namespace of the fault message payload (Fault XML Message). So even though the Fault XML Message has the namespace http://ws.example.com/types ,but if the fault namespace doesnot come with http://ws.example.com/service then Fault will not be triggered and processed in XI. My axis server is sending a fault response like below. http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> soapenv:Server.generalException http://ws.example.com/types";> UserException:id is not valid http://xml.apache.org/axis/";>com.example.ws.types.FaultMessage http://xml.apache.org/axis/";>mymachine They are facing the error like "Not able to match the message namespace from the fault response with the namespace "http://ws.example.com/service";. " How to resolve this? -- View this message in context: http://www.nabble.com/WSDL-message-Validation-with-part-element-tf4140600.html#a11804216 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
Re: WSDL message Validation with part element
My consumer is SAP XI client. Below is the sequence for fault message is processed in XI XI Sequence 1.First step is to identify the wsdl:Message element with the namespace http://ws.example.com/service 2.The next step is to go to the part element in http://ws.example.com/types and map the fault message. To be simple in your case http://ws.example.com/service is the namespace of Fault Message and http://ws.example.com/types is the namespace of the fault message payload (Fault XML Message). So even though the Fault XML Message has the namespace http://ws.example.com/types ,but if the fault namespace doesnot come with http://ws.example.com/service then Fault will not be triggered and processed in XI. My axis server is sending a fault response like below. http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> soapenv:Server.generalException http://ws.example.com/types";> UserException:id is not valid http://xml.apache.org/axis/";>com.example.ws.types.FaultMessage http://xml.apache.org/axis/";>mymachine They are facing the error like "Not able to match the message namespace from the fault response with the namespace "http://ws.example.com/service";. " How to resolve this? -- View this message in context: http://www.nabble.com/WSDL-message-Validation-with-part-element-tf4140600.html#a11804216 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL message Validation with part element
On 7/25/07, jaypee_p <[EMAIL PROTECTED]> wrote: I have defined message from one namespace "http://example.com/service"; and part element from other namespace(tns) "http://example.com/types"; which has complexType. http://example.com/service"; xmlns:wns="http://example.com/service"; xmlns:tns="http://example.com/types"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://example.com/types"; elementFormDefault="qualified"> http://schemas.xmlsoap.org/soap/http"; style="document"/> http://10.10.14.6:8080/axis/services/IdManagerService"/> I want to validate the message with part element. How to validate wsdl message with corresponding part element? My consumer saying fault part element is not able to validated with the fault message since it is different namespace as per above WSDL. My consumer will be fine if I change the single namespace for all the message and complex type elements. I want to make sure this fault part element is validated against the message. or while Axis sends the fault response, how do I make sure part element that I am sending detail tag is comprised with wsdl message element? I am not sure about the problem you trying to ask. any way if you generate code with the wsdl2java using the adb (default) it validate the response and request . -- View this message in context: http://www.nabble.com/WSDL-message-Validation-with-part-element-tf4140600.html#a1186 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
WSDL message Validation with part element
I have defined message from one namespace "http://example.com/service"; and part element from other namespace(tns) "http://example.com/types"; which has complexType. http://example.com/service"; xmlns:wns="http://example.com/service"; xmlns:tns="http://example.com/types"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://example.com/types"; elementFormDefault="qualified"> http://schemas.xmlsoap.org/soap/http"; style="document"/> http://10.10.14.6:8080/axis/services/IdManagerService"/> I want to validate the message with part element. How to validate wsdl message with corresponding part element? My consumer saying fault part element is not able to validated with the fault message since it is different namespace as per above WSDL. My consumer will be fine if I change the single namespace for all the message and complex type elements. I want to make sure this fault part element is validated against the message. or while Axis sends the fault response, how do I make sure part element that I am sending detail tag is comprised with wsdl message element? -- View this message in context: http://www.nabble.com/WSDL-message-Validation-with-part-element-tf4140600.html#a1186 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]