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

HTTPAPI Problem



   Hi,



   I'm using HTTPAPI Ver 1.13.1 released 2006-01-03. to consume a Web
   Service, attached avcelular.wsdl, and jetainfatl.txt program,

   and I got the following error: <faultstring>Name of parameter 1
   different than expected.</faultstring> , I have attached the
   httpapi_debug.txt file with the output, I'm able to consume this web
   service from JAVA but not from the iSeries, can you tell me what is
   wrong? thanks in advance.


   Jeff Talavera-
   Consultor S390, iSeries & Open Systems
<?xml version = "1.0" encoding = "utf-8"?>
<definitions name="VCelular" targetNamespace="http://tempuri.org/action/"; xmlns:tns="http://tempuri.org/action/"; xmlns:wsdlns="http://tempuri.org/action/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns1="HOST">
	<types>
		<schema targetNamespace="http://tempuri.org/action/"; xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; elementFormDefault="qualified">
			<import namespace="HOST" />
			<element name="VCelular.Execute">
				<complexType>
					<sequence>
						<element minOccurs="1" maxOccurs="1" name="Celular" type="xsd:string" />
						<element minOccurs="1" maxOccurs="1" name="Password" type="xsd:string" />
						<element minOccurs="1" maxOccurs="1" name="Ipadress" type="xsd:string" />
					</sequence>
				</complexType>
			</element>
			<element name="VCelular.ExecuteResponse">
				<complexType>
					<sequence>
						<element minOccurs="1" maxOccurs="1" name="Datos" type="xsd:string" />
					</sequence>
				</complexType>
			</element>
		</schema>
	</types>
	<message name="VCelular.ExecuteSoapIn">
		<part name="parameters" element="tns:VCelular.Execute" />
	</message>
	<message name="VCelular.ExecuteSoapOut">
		<part name="parameters" element="tns:VCelular.ExecuteResponse" />
	</message>
	<portType name="VCelularSoapPort">
		<operation name="Execute">
			<input message="wsdlns:VCelular.ExecuteSoapIn" />
			<output message="wsdlns:VCelular.ExecuteSoapOut" />
		</operation>
	</portType>
	<binding name="VCelularSoapBinding" type="wsdlns:VCelularSoapPort">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; />
		<operation name="Execute">
			<soap:operation soapAction="http://tempuri.org/action/action/AVCELULAR.Execute"; />
			<input>
				<soap:body use="literal" />
			</input>
			<output>
				<soap:body use="literal" />
			</output>
		</operation>
	</binding>
	<service name="VCelular">
		<port name="VCelularSoapPort" binding="wsdlns:VCelularSoapBinding">
			<soap:address location="http://150.150.60.85/AOGHostMSG/avcelular.aspx"; />
		</port>
	</service>
</definitions>
     H DFTACTGRP(*NO) ACTGRP(*NEW) BNDDIR('LIBHTTP/HTTPAPI')

     D/copy libhttp/qrpglesrc,httpapi_h

     D cmd             pr                  extpgm('QCMDEXC')
     D  command                     200A   const
     D  length                       15P 5 const

     D rc              s             10I 0
     D msg             s             52A
     D Query           s             64A
     D GoogleKey       s             32A
     D data            s             80A   ctdata dim(12)


     c                   eval      rc = http_url_post(
     c                             'http://150.150.60.85/AOGHostMSG/'+
     c                             'avcelular.aspx'                     :
     c                             %addr(data)                          :
     c                             960                                  :
     c                             '/tmp/AVCELULAR.html'                :
     c                             10                                   :
     c                             'Mozilla/5.0 (X11; U; OS400)'        :
     c                             'text/xml'                           :
     c                             'http://tempuri.org/Execute')
 
     c                   if        rc <> 1
     c                   eval      msg = http_error
     c                   dsply                   msg
     c                   endif

     c                   eval      *inlr = *on
      *
      * Initialize SOAP document:
      *    Set query search String
      *    Set Google KEY API
      *
 
     c                   endsr
**
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <Execute xmlns="http://tempuri.org/";>
      <Celular>3866074</Celular>
      <Password>12345</Password>
      <Ipadress>150.150.10.235</Ipadress>
    </Execute>
  </soap:Body></soap:Envelope>
</soap:Envelope>
HTTPAPI Ver 1.13.1 released 2006-01-03

New tables set, ASCII=QTCPASC. EBCDIC=QTCPEBC
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /AOGHostMSG/avcelular.aspx HTTP/1.1
Host: 150.150.60.85
User-Agent: Mozilla/5.0 (X11; U; OS400)
Content-Type: text/xml
SOAPAction: http://tempuri.org/Execute
Expect: 100-continue
Content-Length: 960


recvresp(): entered
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Wed, 03 Jan 2007 20:18:10 GMT
X-Powered-By: ASP.NET


SetError() ¬13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="utf-8"?>                                          <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";            xmlns:xsd="http://www.w3.org/2001/XMLSchema";                                    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>                           <soap:Body>                                                                       <Execute xmlns="http://tempuri.org/";>                                             <celular>3866074</celular>                                                      <password>12345</password>                                                      <ipadress>150.150.10.235</ipadress>                                           </Execute>                                                                    </soap:Body></soap:Envelope>                                                  </soap:Envelope>                                                                

recvresp(): entered
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Wed, 03 Jan 2007 20:18:10 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/xml;charset=utf-8
Content-Length: 613


SetError() ¬13: HTTP/1.1 200 OK
recvdoc parms: identity 613
recvdoc(): entered
SetError() ¬0:
<?xml version = "1.0" encoding = "utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
	<SOAP-ENV:Body>
		<VCelular.ExecuteResponse xmlns="http://tempuri.org/action/";>
			<SOAP-ENV:Fault>
				<faultcode>SOAP-ENV:Client</faultcode>
				<faultstring>Name of parameter 1 different than expected.</faultstring>
				<detail>1</detail>
			</SOAP-ENV:Fault>
		</VCelular.ExecuteResponse>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

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