[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem calling webservice using WSDL2RPG tool



Hi Thomas,

I download the latest Beta4 version and regenerated the webservice code and when 
i gave a call to the webservice program, it was crashing with the following 
error message:

->Range of subscript value or character string error.        
-> 16: recvdoc: saveproc: Not all data was written!           
   -1009: Range of subscript value or character string error. 

When i compared with older code, i saw that you have replaced the "Blank" 
namespaces  with 'http://www.siebel.com/xml/BT%20Agile%20Update%20LOV'. 

I am not sure if we are still missing something?

Pgm:TEST009 (attached in mail):
In procedures :xsdLocal0_ListOfAgileUpdateLovStart & 
xsdLocal0_ListOfValuesStart_of_xsdLocal0_ListOfAgileUpdateLov for example uses 
these namespaces..

Regards,
Avinash.





----- Original Message ----
From: "thomas.raddatz@xxxxxx" <thomas.raddatz@xxxxxx>
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Sent: Fri, 4 February, 2011 8:51:52 PM
Subject: Re: Problem calling webservice using WSDL2RPG tool


   Avanish,
   I fixed the error you reported. The different use of namespaces for
   RPC/encoded, RPC/literal and Document/literal is driving me crazy.
   However it seems that I got it now. You can download the next beta
   from here:
   [1]http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1.14beta3_
   20110204_1609.zip
   The good news is that I eventually managed to set up a web service
   from your wsdl file. That means that I could do a live test and that I
   am going to add that service to my test cases.
   Last but not least I attached the sample stub and test program that I
   used to call your web service. Did you already notice the new
   PARMSTRUCT and STRUCTSTMF parameters of command WSDL2RPG? The zip file
   also includes the output produced with PARMSTRUCT(*STMF).
   Thomas.
  ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 04.02.2011 12:11:49:
   > Von: avinash_miraskar@xxxxxxxxxxx
   > An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   > Datum: 04.02.2011 12:19
   > Betreff: Re: Problem calling webservice using WSDL2RPG tool
   > Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   >
   > Hi Thomas,
   >
   > One more thing, while i was testing the output got from the
   webservice, i
   > expected the output to be in complex Output parm "SiebelMessage"
   > field, but i am
   > getting the output in "#XML_spcString"(As one longg string). Can you
   > please tell
   > me what is that i need to correct to get the output in this complex
   output
   > parameter.
   >
   > I tested this wsdl file from a testing tool, the output comes in the
   output
   > parm.
   >
   > Basically the webservice in this example passes nothing, and gets
   output in a
   > complex data structure which has lot of levels.
   >
   >
   > Let me know if you need more info. Pls check pgm WS0098.
   >
   > Regards,
   > Avinash.
   >
   >
   >
   > ----- Original Message ----
   > From: Thomas Raddatz <thomas.raddatz@xxxxxxxxxxx>
   > To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
   > Sent: Thu, 3 February, 2011 10:16:36 PM
   > Subject: Re: Problem calling webservice using WSDL2RPG tool
   >
   > You are welcome and I am happy that it works, now.
   >
   > Thomas.
   >
   > Am 03.02.2011 12:09, schrieb Avinash Miraskar:
   > > Thanks Thomas, will try and let you know..
   > >
   > >
   > >
   > >
   > > ----- Original Message ----
   > > From: "thomas.raddatz@xxxxxx"<thomas.raddatz@xxxxxx>
   > > To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   > > Sent: Wed, 2 February, 2011 6:07:23 PM
   > > Subject: Re: Problem calling webservice using WSDL2RPG tool
   > >
   > >
   > >     Avinash,
   > >     I eventually fixed the problem with your web service. The core
   problem
   > >     was that I did not pay attention to the "use" attribute of
   element
   > >     <soap:body>  which is a nested element of<binding>. The use
   attributes
   > >     specifies "literal" for the body of the envelope whereas I
   assumed
   > >     "encoded" because of the "style" attribute of
   element<soap:binding>.
   > >     I also add quotes to the soapAction header, now. You can
   download the
   > >     fix from the URL below:
   > >
   > >
   [1][2]http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1.14bet
   a2_
   > >     20110202_1307.zip
   > >     By the way the first bug fix of beta1 preseved the order of
   the<part>
   > >     elements of element<message>.
   > >     Now the generated request message as send over the wire looks
   like
   > >     this:
   > >     <?xml version="1.0" encoding="UTF-8"?>
   > >     <soapenv:Envelope
   > >
   xmlns:soapenv="[2][3]http://schemas.xmlsoap.org/soap/envelope/";
   > >         xmlns:tns="[3][4]http://siebel.com/asi/";
   > >
   > >
   xmlns:xsdLocal0="[4][5]http://www.siebel.com/xml/BT%20Agile%20Update%2
   0LO
   > >     V">
   > >         <soapenv:Body>
   > >             <tns:Mapics_spcTE>
   > >
   > >     <Process_spcInstance_spcId>string</Process_spcInstance_spcId>
   > >                 <Step_spcName>string</Step_spcName>
   > >                 <_XML_spcString>string</_XML_spcString>
   > >                 <Object_spcId>string</Object_spcId>
   > >
   > >
   <Siebel_spcOperation_spcObject_spcId>string</Siebel_spcOperation_spcOb
   > >     ject_spcId>
   > >                 <SiebelMessage>
   > >                     <xsdLocal0:ListOfAgileUpdateLov>
   > >                         <xsdLocal0:ListOfValues>
   > >
   <xsdLocal0:Type>string</xsdLocal0:Type>
   > >
   <xsdLocal0:Name>string</xsdLocal0:Name>
   > >
   <xsdLocal0:Value>string</xsdLocal0:Value>
   > >
   <xsdLocal0:SubType>string</xsdLocal0:SubType>
   > >
   <xsdLocal0:Active>string</xsdLocal0:Active>
   > >                         </xsdLocal0:ListOfValues>
   > >                     </xsdLocal0:ListOfAgileUpdateLov>
   > >                 </SiebelMessage>
   > >                 <Error_spcCode>string</Error_spcCode>
   > >                 <Error_spcMessage>string</Error_spcMessage>
   > >             </tns:Mapics_spcTE>
   > >         </soapenv:Body>
   > >     </soapenv:Envelope>
   > >     Unfortunately I am not able (actually it is Axis2) to generate
   a Java
   > >     web service for your wsdl file and therefore I cannot do a
   live test.
   > >     Please regenerate your stub module and let me know if it
   works, now.
   > >     Thomas.
   > >    ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 01.02.2011
   07:23:04:
   > >     >  Von: avinash_miraskar@xxxxxxxxxxx
   > >     >  An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   > >     >  Datum: 01.02.2011 07:29
   > >     >  Betreff: Re: Problem calling webservice using WSDL2RPG tool
   > >     >  Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   > >     >
   > >     >  Hi Thomas,
   > >     >
   > >     >  I tried installing the 1.14beta1 release, but the problem
   still
   > >     persists, its
   > >     >  still generating wrong soap request message in the program,
   To
   > >     >  correct this, i
   > >     >  used a functional SOAP testing tool to generate the correct
   soap
   > >     request and
   > >     >  copy pasted the code into my program to make it work.
   > >     >
   > >     >  Additionally i had to correct the program to add double
   quotes to
   > >     soap action.
   > >     >
   > >     >  And regarding "content-type", as you said omitting
   "charset=utf-8"
   > >     >  still works.
   > >     >  Let me know what you think of these.. Thanks for your help
   !
   > >     >
   > >     >  Regards,
   > >     >  Avinash.
   > >     >
   > >     >
   > >     >
   > >     >  ----- Original Message ----
   > >     >  From: Thomas Raddatz<thomas.raddatz@xxxxxxxxxxx>
   > >     >  To: HTTPAPI and FTPAPI
   Projects<ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
   > >     >  Sent: Tue, 1 February, 2011 3:06:47 AM
   > >     >  Subject: Re: Problem calling webservice using WSDL2RPG tool
   > >     >
   > >     >  Avinash,
   > >     >
   > >     >  I wonder if you really had to add "charset=utf-8" to the
   > >     "content-type"
   > >     >  header because "utf-8" should be the default value. Anyway,
   if it
   > >     works
   > >     >  anything is fine with it.
   > >     >
   > >     >  I fixed the problem with the soap request and made
   1.14beta1
   > >     available on
   > >     >  my Freeware page:
   > >     >
   > >     >
   [5][6]http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1.
   > >     >  14beta1_20110131_2207.zip
   > >     >
   > >     >
   > >     >  Please use the direct link because that beta is not yet
   available on
   > >     the
   > >     >  "official" WSDL2RPG page. There is still a little bug in
   A_INSTALL
   > >     (batch
   > >     >  install option on v5r3 systems) that I want to fix before.
   > >     >
   > >     >  Please let me know if beta1 works for you.
   > >     >
   > >     >  Thomas.
   > >     >
   > >     >
   > >     >  Am 31.01.2011 12:20, schrieb Avinash Miraskar:
   > >     >  >  Thanks Thomas, basically i corrected the content-type
   from
   > >     text/xml to
   > >     >  >text/xml;
   > >     >  >  charset=utf-8. Additionally the double quotes to soap
   action did
   > >     help to
   > >     >  >resolve
   > >     >  >  my issue.
   > >     >  >
   > >     >  >  Apart from this the RPG stub had generated wrong soap
   request,
   > >     which i
   > >     >  >corrected
   > >     >  >  it in WS0090 program. I have attached the code for your
   reference.
   > >     >  >
   > >     >  >  When i used the code generated by the tool, it used to
   give me
   > >     these set of
   > >     >  >  errors:
   > >     >  >  13: HTTP/1.1 500 Internal Server Error
   > >     >  >  SOAP-ENV:Server: There is no active Web Service with
   operation
   > >     named
   > >     >  >     'http://siebel.com/asi/:Mapics TE'.(SBL-EAI-04313)
   > >     >  >
   > >     >  >  Let me know what you think of them.. Thank you for your
   help..
   > >     >  >
   > >     >  >  Regards,
   > >     >  >  Avinash.
   > >     >  >
   > >     >  >
   > >     >  >
   > >     >  >  ----- Original Message ----
   > >     >  >  From: "thomas.raddatz@xxxxxx"<thomas.raddatz@xxxxxx>
   > >     >  >  To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   > >     >  >  Sent: Mon, 31 January, 2011 3:25:04 PM
   > >     >  >  Subject: Re: Problem calling webservice using WSDL2RPG
   tool
   > >     >  >
   > >     >  >
   > >     >  >      Avinash,
   > >     >  >      SoapUI specifies the soap action parameter as shown
   below:
   > >     >  >      Content-Type: text/xml;charset=UTF-8
   > >     >  >      SOAPAction:
   "rpc/http://siebel.com/asi/:Mapics_spcTE";
   > >     >  >      User-Agent: Jakarta Commons-HttpClient/3.1
   > >     >  >      Host: sbluatweb01.ad.agi
   > >     >  >      Proxy-Connection: Keep-Alive
   > >     >  >      Content-Length: 1252
   > >     >  >      Please open your web service stub module (WS0099)
   and add the
   > >     double
   > >     >  >      quotes to the soap action parameter likes this:
   > >     >  >        headers.contentType =
   > >     >  >
   ManagedMemoryDataSource_getContentType(hDataSource);
   > >     >  >        headers.soapAction  =
   > >     '"rpc/http://siebel.com/asi/:Mapics_spcTE";';
   > >     >  >      Then recompile the stub module and try it again.
   > >     >  >      Please let me know if that solved the problem. I do
   not yet
   > >     know why
   > >     >  >      the soap action parameter has to be set into double
   quotes. I
   > >     will try
   > >     >  >      to get an answer to that question. Maybe that Scott
   can shed
   > >     some
   > >     >  >      light on that.
   > >     >  >      Thomas.
   > >     >  >    ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am
   31.01.2011
   > >     07:29:52:
   > >     >  >      >   Von: avinash_miraskar@xxxxxxxxxxx
   > >     >  >      >   An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   > >     >  >      >   Datum: 31.01.2011 09:59
   > >     >  >      >   Betreff: Problem calling webservice using
   WSDL2RPG tool
   > >     >  >      >   Gesendet von:
  ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   > >     >  >      >
   > >     >  >      >   Hello All,
   > >     >  >      >
   > >     >  >      >   I have installed WSDL2RPG tool and i generated
   > the RPG stub
   > >     and
   > >     >  >      >   program out of
   > >     >  >      >   it. Later when i try to invoke the program, it
   gives me
   > >     these
   > >     >  >      errors:
   > >     >  >      >
   > >     >  >      >   1) 13: HTTP/1.1 400 Bad Request.
   > >     >  >      >   2)SOAP-ENV:Client: SOAPAction '<?>' is of
   invalid format:
   > >     SOAPAction
   > >     >  >      should
   > >     >  >      >     be either rpc/operationName or
   document/operationName.
   > >     >  >           .
   > >     >  >      >
   > >     >  >      >   I have attached the following :
   > >     >  >      >   1) WSDL file
   > >     >  >      >   2)Corresponding RPG Program and stub generated
   out of
   > >     WSDL2RPG tool.
   > >     >  >      >   3) HTTP error log after invoking the RPG
   program.
   > >     >  >      >
   > >     >  >      >   Can someone please help me resolve this issue.
   Thanks for
   > >     your help
   > >     >  >      >   and let me
   > >     >  >      >   know if you need additional info.
   > >     >  >      >
   > >     >  >      >   Regards,
   > >     >  >      >   Avinash.
   > >     >  >      >
   > >     >  >      >   [Anhang "MapicTEType.WSDL" gelöscht von Thomas
   > >     Raddatz/OBI/DE]
   > >     >  >      >   [Anhang "RPGsources.zip" gelöscht von Thomas
   > >     Raddatz/OBI/DE] [Anhang
   > >     >  >      >   "httpapi_debug.txt" gelöscht von Thomas
   Raddatz/OBI/DE]
   > >     >  >      >
   > >     >  >
   > >
   ----------------------------------------------------------------------
   > >     >  >      -
   > >     >  >      >   This is the FTPAPI mailing list.  To
   > unsubscribe, please go
   > >     to:
   > >     >  >      >
   [1][6][7]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     >  >      >
   > >     >  >
   > >
   ----------------------------------------------------------------------
   > >     >  >      -
   > >     >  >
   > >     >  >      --
   > >     >  >      IMPORTANT NOTICE:
   > >     >  >      This email is confidential, may be legally
   privileged, and is
   > >     for the
   > >     >  >      intended recipient only. Access, disclosure,
   copying,
   > >     distribution, or
   > >     >  >      reliance on any of it by anyone else is prohibited
   and may be
   > >     a
   > >     >  >      criminal
   > >     >  >      offence. Please delete if obtained in error and
   email
   > >     confirmation to
   > >     >  >      the sender.
   > >     >  >
   > >     >  >  References
   > >     >  >
   > >     >  >      1.
   [7][8]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     >  >
   > >     >  >
   > >     >  >
   > >     >  >
   > >     >  >
   > >     >  >
   > >
   ----------------------------------------------------------------------
   > >     -
   > >     >  >  This is the FTPAPI mailing list.  To unsubscribe, please
   go to:
   > >     >  >
   [8][9]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     >  >
   > >
   ----------------------------------------------------------------------
   > >     -
   > >     >
   > >
   ----------------------------------------------------------------------
   > >     -
   > >     >  This is the FTPAPI mailing list.  To unsubscribe, please go
   to:
   > >     >  [9][10]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     >
   > >
   ----------------------------------------------------------------------
   > >     -
   > >     >
   > >     >
   > >     >
   > >     >
   > >
   ----------------------------------------------------------------------
   > >     -
   > >     >  This is the FTPAPI mailing list.  To unsubscribe, please go
   to:
   > >     >  [10][11]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     >
   > >
   ----------------------------------------------------------------------
   > >     -
   > >     >
   > >
   > >     --
   > >     IMPORTANT NOTICE:
   > >     This email is confidential, may be legally privileged, and is
   for the
   > >     intended recipient only. Access, disclosure, copying,
   distribution, or
   > >     reliance on any of it by anyone else is prohibited and may be
   a
   > >     criminal
   > >     offence. Please delete if obtained in error and email
   confirmation to
   > >     the sender.
   > >
   > > References
   > >
   > >     1.
   > >[12]http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1.
   > 14beta2_20110202_1307.zip
   > >p
   > >
   > >     2. [13]http://schemas.xmlsoap.org/soap/envelope/
   > >     3. [14]http://siebel.com/asi/
   > >     4. [15]http://www.siebel.com/xml/BT%20Agile%20Update%20LOV
   > >     5.
   [16]http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1
   > >     6. [17]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     7. [18]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     8. [19]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >     9. [20]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >    10. [21]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >
   > >
   > >
   > >
   ----------------------------------------------------------------------
   -
   > > This is the FTPAPI mailing list.  To unsubscribe, please go to:
   > > [22]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >
   ----------------------------------------------------------------------
   -
   > >
   >
   ----------------------------------------------------------------------
   -
   > This is the FTPAPI mailing list.  To unsubscribe, please go to:
   > [23]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   ----------------------------------------------------------------------
   -
   >
   >
   > [Anhang "RPGsources.zip" gelöscht von Thomas Raddatz/OBI/DE]
   >
   ----------------------------------------------------------------------
   -
   > This is the FTPAPI mailing list.  To unsubscribe, please go to:
   > [24]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   ----------------------------------------------------------------------
   -

   --
   IMPORTANT NOTICE:
   This email is confidential, may be legally privileged, and is for the
   intended recipient only. Access, disclosure, copying, distribution, or
   reliance on any of it by anyone else is prohibited and may be a
   criminal
   offence. Please delete if obtained in error and email confirmation to
   the sender.

References

   1. 
http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1.14beta3_20110204_1609.zip

   2. http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1.14beta2_
   3. http://schemas.xmlsoap.org/soap/envelope/
   4. http://siebel.com/asi/
   5. http://www.siebel.com/xml/BT%20Agile%20Update%20LO
   6. http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1
   7. http://www.scottklement.com/mailman/listinfo/ftpapi
   8. http://www.scottklement.com/mailman/listinfo/ftpapi
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
  10. http://www.scottklement.com/mailman/listinfo/ftpapi
  11. http://www.scottklement.com/mailman/listinfo/ftpapi
  12. http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1
  13. http://schemas.xmlsoap.org/soap/envelope/
  14. http://siebel.com/asi/
  15. http://www.siebel.com/xml/BT%20Agile%20Update%20LOV
  16. http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1
  17. http://www.scottklement.com/mailman/listinfo/ftpapi
  18. http://www.scottklement.com/mailman/listinfo/ftpapi
  19. http://www.scottklement.com/mailman/listinfo/ftpapi
  20. http://www.scottklement.com/mailman/listinfo/ftpapi
  21. http://www.scottklement.com/mailman/listinfo/ftpapi
  22. http://www.scottklement.com/mailman/listinfo/ftpapi
  23. http://www.scottklement.com/mailman/listinfo/ftpapi
  24. http://www.scottklement.com/mailman/listinfo/ftpapi


Attachment: test009
Description: Binary data

Attachment: test010
Description: Binary data

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------