× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The WSDl will not work. The style/encoding of WSDL file is rpc/encoded.
Wsdl2rpg on ibm i supports document/literal.



"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 02/18/2015
06:03:26 AM:

From: "gio.cot" <gio.cot@xxxxxxxxxxx>
To: <midrange-l@xxxxxxxxxxxx>
Date: 02/18/2015 06:19 AM
Subject: wsdl2rpg.sh fail (with WDSL encoding=ISO-8859-1 ??)
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>

i need to create RPG Srvpgm to call a third parts Web Service

when i run the wsdl2rpg.sh command i receive: (see below the Wsdl that i
received)

/QIBM/ProdData/OS/WebServices/V1/client/bin/wsdl2rpg.sh -d
-o/home/mylib/rpg
-s/qsys.lib/mee_WEBSRV.lib/wsrpg.srvpgm
/home/mylib/server.wsdl
Code generation completed. Generated files in directory
'/home/mylib/rpg'.
Attempting to create service program...
java.lmee.RuntimeException: CL command failed to run successfully.
Command:
QSYS/CRTCMOD MODULE(mee_WEBSRV/wsc0) OPTIMIZE(10) DBGVIEW(*SOURCE)
SRCSTMF('/home/mylib/rpg/mynamewsdlPortType.c') INCDIR('/QIB
M/PRODDATA/OS/WEBSERVICES/V1/CLIENT/INCLUDE') REPLACE(*YES) ENUM(*INT)
TEXT('mynamewsdlPortType.c')
The module WSC0 has not been created because they are verified some
instruction errors
Compilation failed .
Service program creation failed. Please see errors above.

the wsdl2rpg command generate only this files:
mynamewsdlPortType.c
mynamewsdlPortType.cl
mynamewsdlPortType.h

pheraps the problem is "encoding=ISO-8859-1" ??; comparing the following
WSDL file, I found it different from other than i used with success (in
the
other Wsdl file that i found Ok , i found "encoding="UTF-8"?> " !!??)


Can some help me where am i wrong .

Thanks in advance

here the Wsdl file that i try to use



<?xml version="1.0" encoding="ISO-8859-1"?>

<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns="http://zzz.xxx.hh.jj/soap/mynamewsdl";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://zzz.xxx.hh.jj/soap/mynamewsdl";>

<types>

<xsd:schema targetNamespace="http://zzz.xxx.hh.jj/soap/mynamewsdl";



<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"; />

<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"; />

</xsd:schema>

</types>

<message name="annulla_docRequest">

<part name="id_doc" type="xsd:string" />

<part name="anno" type="xsd:string" /></message>

<message name="annulla_docResponse">

<part name="stato" type="xsd:string" />

<part name="descrizione" type="xsd:string" /></message>

<portType name="mynamewsdlPortType">

<operation name="annulla_doc">

<input message="tns:annulla_docRequest"/>

<output message="tns:annulla_docResponse"/>

</operation>

</portType>

<binding name="mynamewsdlBinding" type="tns:mynamewsdlPortType">

<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="annulla_doc">

<soap:operation
soapAction="
http://zzz.xxx.hh.jj/myname/linea2/soap/server.php/annulla_doc";
style="rpc"/>

<input><soap:body use="encoded" namespace=""
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>

<output><soap:body use="encoded" namespace=""
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>

</operation>

</binding>

<service name="mynamewsdl">

<port name="mynamewsdlPort" binding="tns:mynamewsdlBinding">

<soap:address
location="http://zzz.xxx.hh.jj:8888/myname/linea2/soap/server.php"/>

</port>

</service>

</definitions>









--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.