on 11-28-2013 5:30 AM
I built a simple transaction with one output transaction property as type xml and linked the transaction result to this variable . And I generated WSDL by using the syntax :
http://<server>:50000/XMII/WSDLGen/<TrxPath>
When I execute on browser it is giving the result but seems missing some thing like " output xml node name ie column names in query is not appearing in wsdl result".
wsdl result:
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
- <!--
Types
--> </s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:sequence>
</s:complexType>
</s:schema>
</types>
Messages
--> - <!-- Ports
--> </operation>
</portType>
Bindings
--> </operation>
</binding>
Service mapping
--> </port>
</service>
</definitions>
I am not exepecting any values of columns but atleast columns should be displayed. Am I right or not please suggest on this.
After executing the wsdl on sap client I could not see any data there. So please suggest me where is the problem.
Regards,
Laxman.
Hi Laxman,
This URL "http://<server>:50000/XMII/WSDLGen/<TrxPath>" will give you WSDL defination of the transaction.
This Definition will contain only the input param information and not the output param.
The WSDL defines the output as:
Thus it only tells that the output would contain a Rowset.
Inside this Rowset each output param of the transaction would be added as an element.
You can run this transaction as a webservice using Webservice Action block and see the output.
Also all the output param would be returned as string.
Thus the XML will come as string and would be encoded so that it confirms to the rules of XML.
e.g. output:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<XacuteResponse xmlns="http://www.sap.com/xMII">
<Rowset>
<Row> <outputXML>&lt;note&gt;&lt;to&gt;Tove&lt;/to&gt;&lt;from&gt;Jani&lt;/from&gt;&lt;heading&gt;Reminder&lt;/heading&gt;&lt;body&gt;Don&apos;t forget me this weekend!&lt;/body&gt;&lt;/note&gt;</outputXML>
</Row>
</Rowset>
</XacuteResponse>
Here output param name was outputXML.
Regards,
Rohit Negi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
Thanks for quick reply.
As you said I called the webservice in wevservice action block in transaction and linked the
xacute responce to tracer then I could see the result(data) in xml format.
So I thought my webservice is functioning properly.
So can I give this webservice to BI consultant as to do mii and bi integration. Or do I need to do any configuration in MII server please suggest.
Regards,
Laxman.
Hi Rohit,
I tested the same webservice in online soap client (http://wsdlbrowser.com/) but it is giving error like
"SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://172.20.36.94:50000/XMII/WSDLGen/Default/Petronet/fetchLocDetailsTRX?wsdl' : failed to load external entity "http://172.20.36.94:50000/XMII/WSDLGen/Default/Petronet/fetchLocDetailsTRX?wsdl"
So I am in confusion that my webservice is working fine or not.
because it is giving results properly with mii webservice action block but not with online soap client.
Please tell me how can I make sure that it is working fine before handover to BI.
Regards,
Laxman.
Hi Rohit,
I run my wsdl as you said with syntax:
http://server:50000/XMII/WSDLGen/Default/test/fetchLocDetailsTRX?IllumLoginName ='xxxx'&Password='yyyy'?WSDL
I copied above url and entered in in online soap wsdl test tool 'http://www.soapclient.com/soaptest.html'
But still it is giving error.Am I doing any mistake.
When I test on my browser it is working fine.
Regards,
Laxman.
Hi Rohit,
No luck even I tried with the syntax:
Regards,
Laxman
Hi Laxman,
Have you assigned a reference document to your output parameter in the transaction you are trying to expose in the web service?
Thanks & Regards,
Anuj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.