on 03-04-2009 4:36 AM
Hi All,
We have developed a WebService using a RFC enabled function module. (using path SE37->Utilities->More Utilities->Create WebService->From the Function Module).
When we open the URL (corresponding to the WebService) in browser and provide the user id and password then it successfully connected and displaying the WSDL file in browser.
But when the web service is used from JAVA client then we are getting the error "Bad envelope tag: definitions". From the client call we are not getting any HTTP error messages.
And one more thing is, The supporting object generation is failing when we use the WSDL given by the URL for WebService.,
When I remove the following tag from WSDL then only it is able to generate the supporting client objects.
<wsp:Policy>
<wsp:PolicyReference URI="#IF_z_test"/> -->Here z_test is the name of the FM
</wsp:Policy>
Could anyone of you help me in this regard.
Regards
Ashwini
*Detailed Error Message *
AxisFault
faultCode: Server.userException
faultSubcode:
faultString: Bad envelope tag: definitions
faultActor:
faultNode:
faultDetail:
stackTrace:org.xml.sax.SAXException: Bad envelope tag: definitions
at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:70)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:714)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2771)
at org.apache.axis.client.Call.invoke(Call.java:2754)
at org.apache.axis.client.Call.invoke(Call.java:2430)
at org.apache.axis.client.Call.invoke(Call.java:2353)
at org.apache.axis.client.Call.invoke(Call.java:1810)
at IPCClient.WebServiceTestClient.main(WebServiceTestClient.java:57)
hostname:esealmw283
Bad envelope tag: definitions
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:719)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2771)
at org.apache.axis.client.Call.invoke(Call.java:2754)
at org.apache.axis.client.Call.invoke(Call.java:2430)
at org.apache.axis.client.Call.invoke(Call.java:2353)
at org.apache.axis.client.Call.invoke(Call.java:1810)
at IPCClient.WebServiceTestClient.main(WebServiceTestClient.java:57)
Caused by: org.xml.sax.SAXException: Bad envelope tag: definitions
at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:70)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:714)
... 9 more
Hi,
did you try to configure the Web Service in SOAMANAGER?
It seems like you are dealing with an "abstract"-WSDL.
Regards
Vasyl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I cracked the issue using folowing steps :
Please refer this link [https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11574] [original link is broken] [original link is broken] [original link is broken];
If still there are some problem; (e.g. Endpoints are not active)- Then delete all endpoints and create new service.
Regards
Ashwini
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.