[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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]http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1.14beta2_
> 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]http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="[3]http://siebel.com/asi/"
>
> xmlns:xsdLocal0="[4]http://www.siebel.com/xml/BT%20Agile%20Update%20LO
> 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]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]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]http://www.scottklement.com/mailman/listinfo/ftpapi
> > >
> > >
> > >
> > >
> > >
> > >
> ----------------------------------------------------------------------
> -
> > > This is the FTPAPI mailing list. To unsubscribe, please go to:
> > > [8]http://www.scottklement.com/mailman/listinfo/ftpapi
> > >
> ----------------------------------------------------------------------
> -
> >
> ----------------------------------------------------------------------
> -
> > This is the FTPAPI mailing list. To unsubscribe, please go to:
> > [9]http://www.scottklement.com/mailman/listinfo/ftpapi
> >
> ----------------------------------------------------------------------
> -
> >
> >
> >
> >
> ----------------------------------------------------------------------
> -
> > This is the FTPAPI mailing list. To unsubscribe, please go to:
> > [10]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.14beta2_20110202_1307.zip
>
> 2. http://schemas.xmlsoap.org/soap/envelope/
> 3. http://siebel.com/asi/
> 4. http://www.siebel.com/xml/BT%20Agile%20Update%20LOV
> 5. http://www.tools400.de/Downloads/Freeware/Beta/WSDL2RPG_v1
> 6. http://www.scottklement.com/mailman/listinfo/ftpapi
> 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
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------