Skip to Content
author's profile photo Former Member
Former Member

Consuming Web Services

Hi,

I am trying to create an iView which consumes an web service.

The problem I face is the Web Service has a complexType AuthenticationInfo which needs to be passed in the header.

Anyone has expenrienced something like this.

Appreciate your help.

THanks and Regards,

Prasanna

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2004 at 10:23 AM

    Hi,

    Any techie there.

    I've a complex type in SOAP header. How should I call this web service from an iView.

    The SOAP header looks like this

    <soap:Header>

    <AuthenticationInfo xmlns="urn:Zawad_Simple">

    <userName>portaluser</userName>

    <password>portaluser</password>

    <authentication />

    <locale />

    <timeZone />

    </AuthenticationInfo>

    </soap:Header>

    Appreciate Any Help.

    Thanks and Regards,

    Prasanna Krishnamurthy

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      This is the WSDL of the Web Service in question

      ***************************

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

      <!-- WSDL File generated by the SAP PORTAL ECLIPSE PLUGINS -->

      <!-- VERSION : 1.2.0 -->

      <wsdl:definitions targetNamespace="urn:Zawad_Simple"

      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

      xmlns:xsd="http://www.w3.org/2001/XMLSchema"

      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"

      xmlns:s="urn:Zawad_Simple"

      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

      xmlns:tns1="http://mb.scc.sao.aramco.com"

      xmlns:tns0="prt:service:com.aramco.sao.scc.mb"

      xmlns="http://schemas.xmlsoap.org/wsdl/">

      <types>

      <xsd:schema elementFormDefault="qualified" targetNamespace="urn:Zawad_Simple">

      <xsd:element name="OpGet" type="s:GetInputMap"/>

      <xsd:complexType name="GetInputMap">

      <xsd:sequence>

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

      </xsd:sequence>

      </xsd:complexType>

      <xsd:element name="OpGetResponse" type="s:GetOutputMap"/>

      <xsd:complexType name="GetOutputMap">

      <xsd:sequence>

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

      <xsd:element name="Create_Date" type="xsd:dateTime"/>

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

      <xsd:element name="Modified_Date" type="xsd:dateTime"/>

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

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

      <xsd:element name="Status" type="s:StatusType"/>

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

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

      </xsd:sequence>

      </xsd:complexType>

      <xsd:simpleType name="StatusType">

      <xsd:restriction base="xsd:string">

      <xsd:enumeration value="New"/>

      <xsd:enumeration value="Assigned"/>

      <xsd:enumeration value="Fixed"/>

      <xsd:enumeration value="Rejected"/>

      <xsd:enumeration value="Closed"/>

      </xsd:restriction>

      </xsd:simpleType>

      <xsd:element name="OpCreate" type="s:CreateInputMap"/>

      <xsd:complexType name="CreateInputMap">

      <xsd:sequence>

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

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

      <xsd:element name="Status" type="s:StatusType"/>

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

      </xsd:sequence>

      </xsd:complexType>

      <xsd:element name="OpCreateResponse" type="s:CreateOutputMap"/>

      <xsd:complexType name="CreateOutputMap">

      <xsd:sequence>

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

      </xsd:sequence>

      </xsd:complexType>

      <xsd:element name="OpGetList" type="s:GetListInputMap"/>

      <xsd:complexType name="GetListInputMap">

      <xsd:sequence>

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

      </xsd:sequence>

      </xsd:complexType>

      <xsd:element name="OpGetListResponse" type="s:GetListOutputMap"/>

      <xsd:complexType name="GetListOutputMap">

      <xsd:sequence>

      <xsd:element maxOccurs="unbounded" name="getListValues">

      <xsd:complexType>

      <xsd:sequence>

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

      <xsd:element name="Create_Date" type="xsd:dateTime"/>

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

      <xsd:element name="Modified_Date" type="xsd:dateTime"/>

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

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

      <xsd:element name="Status" type="s:StatusType"/>

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

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

      </xsd:sequence>

      </xsd:complexType>

      </xsd:element>

      </xsd:sequence>

      </xsd:complexType>

      <xsd:element name="OpSet" type="s:SetInputMap"/>

      <xsd:complexType name="SetInputMap">

      <xsd:sequence>

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

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

      <xsd:element name="Status" type="s:StatusType"/>

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

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

      </xsd:sequence>

      </xsd:complexType>

      <xsd:element name="OpSetResponse" type="s:SetOutputMap"/>

      <xsd:complexType name="SetOutputMap">

      <xsd:sequence/>

      </xsd:complexType>

      <xsd:element name="AuthenticationInfo" type="s:AuthenticationInfo"/>

      <xsd:complexType name="AuthenticationInfo">

      <xsd:sequence>

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

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

      <xsd:element minOccurs="0" name="authentication" type="xsd:string"/>

      <xsd:element minOccurs="0" name="locale" type="xsd:string"/>

      <xsd:element minOccurs="0" name="timeZone" type="xsd:string"/>

      </xsd:sequence>

      </xsd:complexType>

      </xsd:schema>

      http://www.w3.org/2001/XMLSchema" targetNamespace=" http://mb.scc.sao.aramco.com">

      <complexType name="AuthenticationInfo">

      <sequence>

      <element name="TimeZone" nillable="true" type="xsd:string"/>

      <element name="Locale" nillable="true" type="xsd:string"/>

      <element name="Password" nillable="true" type="xsd:string"/>

      <element name="UserName" nillable="true" type="xsd:string"/>

      <element name="Authentication" nillable="true" type="xsd:string"/>

      </sequence>

      </complexType>

      <complexType name="AuthenticationInfo">

      <sequence>

      <element name="TimeZone" nillable="true" type="xsd:string"/>

      <element name="Locale" nillable="true" type="xsd:string"/>

      <element name="Password" nillable="true" type="xsd:string"/>

      <element name="UserName" nillable="true" type="xsd:string"/>

      <element name="Authentication" nillable="true" type="xsd:string"/>

      </sequence>

      </complexType>

      </schema>

      </types>

      <wsdl:message name="OpCreateSoapOut">

      <wsdl:part name="parameters" element="s:OpCreateResponse"/>

      </wsdl:message>

      <wsdl:message name="OpGetSoapOut">

      <wsdl:part name="parameters" element="s:OpGetResponse"/>

      </wsdl:message>

      <wsdl:message name="OpSetSoapOut">

      <wsdl:part name="parameters" element="s:OpSetResponse"/>

      </wsdl:message>

      <wsdl:message name="OpSetSoapIn">

      <wsdl:part name="parameters" element="s:OpSet"/>

      </wsdl:message>

      <wsdl:message name="OpCreateSoapIn">

      <wsdl:part name="parameters" element="s:OpCreate"/>

      </wsdl:message>

      <wsdl:message name="OpGetListSoapOut">

      <wsdl:part name="parameters" element="s:OpGetListResponse"/>

      </wsdl:message>

      <wsdl:message name="ARAuthenticate">

      <wsdl:part name="parameters" element="s:AuthenticationInfo"/>

      </wsdl:message>

      <wsdl:message name="OpGetSoapIn">

      <wsdl:part name="parameters" element="s:OpGet"/>

      </wsdl:message>

      <wsdl:message name="OpGetListSoapIn">

      <wsdl:part name="parameters" element="s:OpGetList"/>

      </wsdl:message>

      <wsdl:portType name="Zawad_SimplePortType">

      <wsdl:operation name="OpGet">

      <wsdl:input message="s:OpGetSoapIn"/>

      <wsdl:output message="s:OpGetSoapOut"/>

      </wsdl:operation>

      <wsdl:operation name="OpCreate">

      <wsdl:input message="s:OpCreateSoapIn"/>

      <wsdl:output message="s:OpCreateSoapOut"/>

      </wsdl:operation>

      <wsdl:operation name="OpGetList">

      <wsdl:input message="s:OpGetListSoapIn"/>

      <wsdl:output message="s:OpGetListSoapOut"/>

      </wsdl:operation>

      <wsdl:operation name="OpSet">

      <wsdl:input message="s:OpSetSoapIn"/>

      <wsdl:output message="s:OpSetSoapOut"/>

      </wsdl:operation>

      </wsdl:portType>

      <wsdl:binding name="Zawad_SimpleSoapBinding" type="s:Zawad_SimplePortType">

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

      <wsdl:operation name="OpGet">

      <soap:operation soapAction="urn:Zawad_Simple/OpGet" style="document"/>

      <wsdl:input>

      <soap:body use="literal" namespace=""/>

      </wsdl:input>

      <wsdl:output>

      <soap:body use="literal" namespace=""/>

      </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="OpCreate">

      <soap:operation soapAction="urn:Zawad_Simple/OpCreate" style="document"/>

      <wsdl:input>

      <soap:body use="literal" namespace=""/>

      </wsdl:input>

      <wsdl:output>

      <soap:body use="literal" namespace=""/>

      </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="OpGetList">

      <soap:operation soapAction="urn:Zawad_Simple/OpGetList" style="document"/>

      <wsdl:input>

      <soap:body use="literal" namespace=""/>

      </wsdl:input>

      <wsdl:output>

      <soap:body use="literal" namespace=""/>

      </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="OpSet">

      <soap:operation soapAction="urn:Zawad_Simple/OpSet" style="document"/>

      <wsdl:input>

      <soap:body use="literal" namespace=""/>

      </wsdl:input>

      <wsdl:output>

      <soap:body use="literal" namespace=""/>

      </wsdl:output>

      </wsdl:operation>

      </wsdl:binding>

      <wsdl:service name="Zawad_SimpleService">

      <wsdl:port name="Zawad_SimpleSoap" binding="s:Zawad_SimpleSoapBinding">

      <soap:address location="http://arabica:8881/arsys/services/ARService?server=arsqa&#38;webService=Zawad_Simple"/>

      </wsdl:port>

      </wsdl:service>

      </wsdl:definitions>

      **********************

      Thanks and Regards,

      Prasanna Krishnamurthy

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2004 at 09:26 AM

    How to consume this Web Service?

    As a temporary solution, we managed to consume the same using ABAP.....

    But the challenge is doint it using PDK..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.