[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem calling webservice using WSDL2RPG tool
Thanks Thomas, will look into this..
----- 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:
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]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.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
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------