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

Re: Help with HTTP API



I forgot, attached is the WSDL file...aretornarem.xml

On 2/24/06, Jeffreehy Talavera <jeffreehy@xxxxxxxxx> wrote:
Hi listers,
 
I' using the Scott's HTTP API to consum a webservice built in .NET with a very good success, and now it is in produccion,
orking very fine, Today I was asked to try with another one, built with Genexus , but when I try to call it with the POST I got the following error: 
              The data at the root level is invalid. Line 1, position
 
here is my POST
eval      rc=http_url_post(

'http://150.150.60.42'+

'/aretornarem.aspx'+

'/Execute'

: data

: size

: '/tmp/httptest.html'

: HTTP_T

          : HTTP_TIMEOUT

: HTTP_USERAGENT

: 'application/x-www-form-urlencoded')
 
the other question is what PROC do I have to use is I need to send in the post an Integer value and not an string value, like this:
c                   callp     http_url_encoder_addvar_s(  
c                                Enc  : 'iCustomerNumber':
c                                1234)    
 
Thanks.
 
Jeff Talavera               
 

<?xml version = "1.0" encoding = "utf-8"?>
<definitions name="retornarem" 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="Sistema Remesas Multiples">
	<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="Sistema Remesas Multiples" />
			<element name="retornarem.Execute">
				<complexType>
					<sequence>
						<element minOccurs="1" maxOccurs="1" name="Usuario" type="xsd:string" />
						<element minOccurs="1" maxOccurs="1" name="Password" type="xsd:string" />
						<element minOccurs="1" maxOccurs="1" name="Dremesas" type="xsd:string" />
					</sequence>
				</complexType>
			</element>
			<element name="retornarem.ExecuteResponse">
				<complexType>
					<sequence>
						<element minOccurs="1" maxOccurs="1" name="Texto" type="xsd:string" />
					</sequence>
				</complexType>
			</element>
		</schema>
	</types>
	<message name="retornarem.ExecuteSoapIn">
		<part name="parameters" element="tns:retornarem.Execute" />
	</message>
	<message name="retornarem.ExecuteSoapOut">
		<part name="parameters" element="tns:retornarem.ExecuteResponse" />
	</message>
	<portType name="retornaremSoapPort">
		<operation name="Execute">
			<input message="wsdlns:retornarem.ExecuteSoapIn" />
			<output message="wsdlns:retornarem.ExecuteSoapOut" />
		</operation>
	</portType>
	<binding name="retornaremSoapBinding" type="wsdlns:retornaremSoapPort">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; />
		<operation name="Execute">
			<soap:operation soapAction="http://tempuri.org/action/action/ARETORNAREM.Execute"; />
			<input>
				<soap:body use="literal" />
			</input>
			<output>
				<soap:body use="literal" />
			</output>
		</operation>
	</binding>
	<service name="retornarem">
		<port name="retornaremSoapPort" binding="wsdlns:retornaremSoapBinding">
			<soap:address location="http://150.150.60.253/aretornarem.aspx"; />
		</port>
	</service>
</definitions>