<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling a webservice with complex type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915618#M58047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i havent tried this method, if you had looked at the weblog reference i am using http_client and Call Transformation to do this kind of job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try chaing &lt;/P&gt;&lt;P&gt;CUSTOMERCODE CHAR25&lt;/P&gt;&lt;P&gt;CONTROLGROUP CHAR25&lt;/P&gt;&lt;P&gt;DATEMODIFIED CHAR25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to type string and see what happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of SAP you are using, if its =&amp;gt; WAS6.2 then there are few very useful weblogs look at the weblogs by Thomas Jung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2005 10:07:14 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2005-06-13T10:07:14Z</dc:date>
    <item>
      <title>Calling a webservice with complex type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915614#M58043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following question. In .NET I created a webservice which generates an xml file.&lt;/P&gt;&lt;P&gt;[Example]&lt;/P&gt;&lt;P&gt;&amp;lt;Item&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;Code&amp;gt;string1&amp;lt;/Code&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;Answer&amp;gt;string2&amp;lt;/Answer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Item&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Item&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;Code&amp;gt;string3&amp;lt;/Code&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;Answer&amp;gt;string4&amp;lt;/Answer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Item&amp;gt;&lt;/P&gt;&lt;P&gt;[Example]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The xml contains 20000 entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an ABAP on the WAS 6.20 to call the webservice. BTW: I am able to connect to a webservice which delivers simple types string etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that ABAP I created an internal table (no header) based on a Structure defined in the dictionary. Which matches the xml file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call and Process are fine. I even get entries in the internal table. 20000 to be exact (So that matches my webservice) However there are no values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody here have experience with complex types and the WAS 6.20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz Jeroen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like some code then I'll post that next time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 12:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915614#M58043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a webservice with complex type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915615#M58044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeroen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wrote a program to parse XML but mine was just to read XML from application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But anyway, first thing you need to make sure that you are getting the XML string in your ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further you need to use XML library interfaces to parse it.&lt;/P&gt;&lt;P&gt;Can you please post the code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be we can help after that!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 17:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915615#M58044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T17:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a webservice with complex type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915616#M58045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that the XML element name representing the internaltable field name is in ALL UPPERCASE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out the following weblog where i have converted XML into ABAP ITAB using CALL TRANSFORMATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its not clear do get back, i will try to post a more simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2005 10:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915616#M58045</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-06-11T10:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a webservice with complex type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915617#M58046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried uppercasing but unfortunately that didn't help. I still have the same problem. Itab is filled with record but there is no data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I post the complete code (I did strip all the error handling because that's not the problem) below and a piece of the xml.&lt;/P&gt;&lt;P&gt;The table ZORM_ABC_VALUES contains the following fields:&lt;/P&gt;&lt;P&gt;CUSTOMERCODE	CHAR25&lt;/P&gt;&lt;P&gt;CONTROLGROUP	CHAR25&lt;/P&gt;&lt;P&gt;DATEMODIFIED	CHAR25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: cServerDestination TYPE char64&lt;/P&gt;&lt;P&gt;                              VALUE '192.168.102.17',&lt;/P&gt;&lt;P&gt;           cServerPort        TYPE char64&lt;/P&gt;&lt;P&gt;                              VALUE '80',&lt;/P&gt;&lt;P&gt;           cWebServicePage    TYPE char64&lt;/P&gt;&lt;P&gt;                              VALUE '/ABCUpdate/ABCUpdater.asmx',&lt;/P&gt;&lt;P&gt;           cWebServiceMethod1 TYPE string&lt;/P&gt;&lt;P&gt;                              VALUE 'GetList',&lt;/P&gt;&lt;P&gt;           cNsVal             type string&lt;/P&gt;&lt;P&gt;                              value 'http://tempuri.org/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ABCList type standard table of ZORM_ABC_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CallService.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CallService.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: osoap TYPE REF TO CSoapDocument.&lt;/P&gt;&lt;P&gt;  DATA: isoap TYPE REF TO ISoapSerialize.&lt;/P&gt;&lt;P&gt;  DATA: otransp TYPE REF TO CSoapTransportHttp.&lt;/P&gt;&lt;P&gt;  DATA: oFault  TYPE REF TO CSoapFault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: exTransport TYPE REF TO CSoapExceptionTransport.&lt;/P&gt;&lt;P&gt;  DATA: exFault     TYPE REF TO CSoapExceptionFault.&lt;/P&gt;&lt;P&gt;  DATA: exDocfmt    TYPE REF TO CSoapExceptionDocumentFormat.&lt;/P&gt;&lt;P&gt;  DATA: exUsage     TYPE REF TO CSoapExceptionUsage.&lt;/P&gt;&lt;P&gt;  DATA: exResource  TYPE REF TO CSoapExceptionResource.&lt;/P&gt;&lt;P&gt;  DATA: exInternal  TYPE REF TO CSoapExceptionInternal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: soapurl TYPE string.&lt;/P&gt;&lt;P&gt;  DATA: soapact TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: exText      TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: dref    TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT osoap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD osoap-&amp;gt;set_method&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        nsprefix   = ''&lt;/P&gt;&lt;P&gt;        nsvalue    = cNsVal&lt;/P&gt;&lt;P&gt;        name       = cWebServiceMethod1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    GET REFERENCE OF ABCList INTO dref.&lt;/P&gt;&lt;P&gt;    CALL METHOD osoap-&amp;gt;add_parameter&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        direction  = CSoapConstants=&amp;gt;ic_param_out&lt;/P&gt;&lt;P&gt;        name       = 'GetListResult'&lt;/P&gt;&lt;P&gt;        value      = dref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD osoap-&amp;gt;set_tag_name_format&lt;/P&gt;&lt;P&gt;      EXPORTING format = CSoapConstants=&amp;gt;ic_tagfmt_mixcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  isoap = osoap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD CSoapTransport=&amp;gt;new_http_transport&lt;/P&gt;&lt;P&gt;      IMPORTING transport = otransp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'http://' cserverdestination ':' cserverport cwebservicepage INTO soapurl.&lt;/P&gt;&lt;P&gt;    CALL METHOD otransp-&amp;gt;set_destination_by_url&lt;/P&gt;&lt;P&gt;      EXPORTING url = soapurl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE cNsVal cWebServiceMethod1 INTO soapact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD otransp-&amp;gt;set_soapaction&lt;/P&gt;&lt;P&gt;      EXPORTING soapaction = soapact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD otransp-&amp;gt;set_payload&lt;/P&gt;&lt;P&gt;      EXPORTING payload = isoap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD otransp-&amp;gt;request_response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL METHOD otransp-&amp;gt;close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;--&lt;DEL&gt;-XML&lt;/DEL&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ArrayOfABCList xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/"&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;ABCList&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;CUSTOMERCODE&amp;gt;1.10751986&amp;lt;/CUSTOMERCODE&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;CONTROLGROUP&amp;gt;B&amp;lt;/CONTROLGROUP&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;DATEMODIFIED&amp;gt;11/06/2005 03:57:22&amp;lt;/DATEMODIFIED&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/ABCList&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;ABCList&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;CUSTOMERCODE&amp;gt;1.10923926&amp;lt;/CUSTOMERCODE&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;CONTROLGROUP&amp;gt;B&amp;lt;/CONTROLGROUP&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;DATEMODIFIED&amp;gt;11/06/2005 03:57:22&amp;lt;/DATEMODIFIED&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/ABCList&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ArrayOfABCList&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jeroen Bijvank&lt;/P&gt;&lt;P&gt;&amp;gt;wrong xml version&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2005 09:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915617#M58046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-13T09:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a webservice with complex type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915618#M58047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i havent tried this method, if you had looked at the weblog reference i am using http_client and Call Transformation to do this kind of job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try chaing &lt;/P&gt;&lt;P&gt;CUSTOMERCODE CHAR25&lt;/P&gt;&lt;P&gt;CONTROLGROUP CHAR25&lt;/P&gt;&lt;P&gt;DATEMODIFIED CHAR25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to type string and see what happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of SAP you are using, if its =&amp;gt; WAS6.2 then there are few very useful weblogs look at the weblogs by Thomas Jung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2005 10:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915618#M58047</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-06-13T10:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a webservice with complex type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915619#M58048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at your weblog and I came to that same conclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing to string doesn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned in my first post it's a WAS 6.20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The webservice is from a .NET machine. I heard from some people that there are some problems when SAP consumes .NET webservices. Maybe somebody can confirm this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with kind regards,&lt;/P&gt;&lt;P&gt;Jeroen Bijvank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2005 11:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915619#M58048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-13T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a webservice with complex type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915620#M58049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok tnx for all the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the problem. &lt;/P&gt;&lt;P&gt;I changed the following:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL METHOD osoap-&amp;gt;set_tag_name_format&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXPORTING format = CSoapConstants=&amp;gt;ic_tagfmt_mixcase.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD osoap-&amp;gt;set_tag_name_format&lt;/P&gt;&lt;P&gt;        EXPORTING format = CSoapConstants=&amp;gt;ic_tagfmt_default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now the structure is filled with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tnx for taking the time to reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz Jeroen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2005 12:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-webservice-with-complex-type/m-p/915620#M58049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-13T12:24:59Z</dc:date>
    </item>
  </channel>
</rss>

