Skip to Content
0
Former Member
Dec 21, 2006 at 08:27 AM

Calling WebServices using Flex Builder

28 Views

Hello,

I want to use a WebService in the Flex Builder. I first defined the WebService:

http://ld9030.wdf.sap.corp:50050/sap/bc/srt/rfc/sap/ZTP_TEST4?wsdl" result="log(event)" showBusyCursor="true">

I have 2 importing parameters in the WebService (IText and IText2).

But in the log-method, I cannot access these parameters:

private function log(event:ResultEvent):void {

var test1 = event.result.IText;

}

Do you know, how I can access the import parameters?

Please find attached the wsdl definition.

Thanks,

Thomas

<?xml version="1.0" encoding="utf-8" ?>

- http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">

- <wsdl:types>

- http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" elementFormDefault="unqualified" attributeFormDefault="qualified">

- <xsd:element name="TpTest">

- <xsd:complexType>

- <xsd:sequence>

<xsd:element name="IFlag" type="xsd:string" />

<xsd:element name="IFlag2" type="xsd:string" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

- <xsd:element name="TpTestResponse">

- <xsd:complexType>

- <xsd:sequence>

<xsd:element name="EText" type="xsd:string" />

<xsd:element name="EText2" type="xsd:string" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

- <wsdl:message name="TpTest">

<wsdl:part name="parameters" element="tns:TpTest" />

</wsdl:message>

- <wsdl:message name="TpTestResponse">

<wsdl:part name="parameters" element="tns:TpTestResponse" />

</wsdl:message>

- <wsdl:portType name="ZTP_TEST4">

- <wsdl:operation name="TpTest">

<wsdl:input message="tns:TpTest" />

<wsdl:output message="tns:TpTestResponse" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="ZTP_TEST4SoapBinding" type="tns:ZTP_TEST4">

http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="TpTest">

<soap:operation soapAction="" />

- <wsdl:input>

<soap:body use="literal" />

</wsdl:input>

- <wsdl:output>

<soap:body use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="ZTP_TEST4Service">

- <wsdl:port name="ZTP_TEST4SoapBinding" binding="tns:ZTP_TEST4SoapBinding">

http://us4419.wdf.sap.corp:50050/sap/bc/srt/rfc/sap/ZTP_TEST4?sap-client=000" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>