Skip to Content
0
Former Member
May 09, 2007 at 01:45 AM

WSDL Issue

49 Views

Hi All,

I created a Webservice and I'm trying to call the webservice from XI. For that I took the WSDL generated by the web application server of SAP ( not XI). It gave me a WSDL file which I tried importing into XI. Webas generates 3 WSDl file one file called main, one for porttypes and one for bindings. I imported these files into Xi as and created the external reference. But I don't see anything in the messages tab after importing. I have attached the three WSDL which I got. Please let me know if anything is wrong with these wsdl'S, These WSDL's are generated by the SAP web as and not manually constructed.

MAIN:

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

http://schemas.xmlsoap.org/wsdl/" name="CreditCardAuthorizationWsd" targetNamespace="urn:CreditCardAuthorizationWsd" xmlns:bns0="urn:CreditCardAuthorizationWsd/Config1/document" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/">

<wsdl:import location="./bindings/Config1_document.wsdl" namespace="urn:CreditCardAuthorizationWsd/Config1/document"/>

<wsdl:service name="CreditCardAuthorization">

<wsdl:port name="Config1Port_Document" binding="bns0:Config1Binding">

http://snfweb04.sec.sharpamericas.com:50100/CreditCardAuthorization/Config1?style=document"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Bindings :

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

http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:CreditCardAuthorizationWsd/Config1/document" xmlns:prt0="urn:CreditCardAuthorizationWsd/CreditCardAuthorizationVi/document" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/">

<wsdl:import location="../porttypes/Config1_CreditCardAuthorizationVi_document.wsdl" namespace="urn:CreditCardAuthorizationWsd/CreditCardAuthorizationVi/document"/>

<wsdl:binding name="Config1Binding" type="prt0:CreditCardAuthorizationVi_Document">

http://schemas.xmlsoap.org/soap/http" style="document"/>

<wsdl:operation name="getAuthorization">

<soap:operation soapAction=""/>

<wsdl:input>

<soap:body use="literal" parts="parameters"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

</wsdl:definitions>

Porttypes:

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

http://schemas.xmlsoap.org/wsdl/" xmlns:ns0="urn:CreditCardAuthorizationVi" targetNamespace="urn:CreditCardAuthorizationWsd/CreditCardAuthorizationVi/document" xmlns:tns="urn:CreditCardAuthorizationWsd/CreditCardAuthorizationVi/document">

<wsdl:types>

http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.sharp.creditcard" xmlns:tns="urn:com.sharp.creditcard" elementFormDefault="qualified">

<xs:complexType name="CreditCardRequestInfo">

<xs:sequence>

<xs:element name="amount" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="city" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="comments" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="creditCardNumber" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="currency" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="cvv2" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="expDate" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="firstName" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="invoiceNumber" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="lastName" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="partner" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="password" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="purchaseOreder" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="state" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="street" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="tender" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="transactionType" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="user" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="vendor" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="verbosity" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="zip" type="xs:string" nillable="true" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="CreditCardResponseInfo">

<xs:sequence>

<xs:element name="aUTHCODE" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="aVSADDR" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="aVSZIP" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="cvv2match" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="iAVS" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="referenceId" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="responseCode" type="xs:string" nillable="true" minOccurs="0"/>

<xs:element name="responseMessage" type="xs:string" nillable="true" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

</xs:schema>

http://www.w3.org/2001/XMLSchema" targetNamespace="urn:CreditCardAuthorizationVi" xmlns:tns="urn:CreditCardAuthorizationVi" elementFormDefault="qualified" xmlns:s0="urn:com.sharp.creditcard">

<xs:import namespace="urn:com.sharp.creditcard"/>

<xs:element name="getAuthorization">

<xs:complexType>

<xs:sequence>

<xs:element name="creditCardRequestInfo" type="s0:CreditCardRequestInfo" nillable="true"/>

</xs:sequence>

</xs:complexType>

</xs:element>

<xs:element name="getAuthorizationResponse">

<xs:complexType>

<xs:sequence>

<xs:element name="Response" type="s0:CreditCardResponseInfo" nillable="true"/>

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:schema>

</wsdl:types>

<wsdl:message name="getAuthorizationIn_doc">

<wsdl:part name="parameters" element="ns0:getAuthorization"/>

</wsdl:message>

<wsdl:message name="getAuthorizationOut_doc">

<wsdl:part name="parameters" element="ns0:getAuthorizationResponse"/>

</wsdl:message>

<wsdl:portType name="CreditCardAuthorizationVi_Document">

<wsdl:operation name="getAuthorization">

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

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

</wsdl:operation>

</wsdl:portType>

</wsdl:definitions>

Can some body helpme with this .

Thanks and Regards

Arvind