cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL Issue

Former Member
0 Kudos

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"?>

<!-- Generated by WSDLDefinitionsParser --><wsdl:definitions xmlns:wsdl="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">

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

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Bindings :

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

<!-- Generated by WSDLDefinitionsParser --><wsdl:definitions xmlns:wsdl="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">

<soap:binding transport="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"?>

<!-- Generated by WSDLDefinitionsParser --><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns0="urn:CreditCardAuthorizationVi" targetNamespace="urn:CreditCardAuthorizationWsd/CreditCardAuthorizationVi/document" xmlns:tns="urn:CreditCardAuthorizationWsd/CreditCardAuthorizationVi/document">

<wsdl:types>

<xs:schema xmlns:xs="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>

<xs:schema xmlns:xs="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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Arvind,

First thing u shud do is..for invoking a webservice through XI do not import all the WSDLs ....Import only the WSDL under the porttypes....

Port types defines the interface in XI...Once u import them....Then check the msg type.....As per u info u shud see them as

getAuthorizationIn_doc---request

getAuthorizationOut_doc---Response..

If u want something more plz ask

Regards,

AshwinM

Note:- Reward If helpful

Former Member
0 Kudos

Ashwin,

The problem here is even if I import just the porttypes, I'm unbale to see anything in the messages tab. It is really weird as to why it is behaving like this.

Do have any idea ?

Thanks

Arvind

Answers (1)

Answers (1)

Former Member
0 Kudos

Arvind,

You have to deploy your webservice in your XI box in the webservice navigator. Check this weblog on this for an end to end scenario:

/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services

---Satish