Solved

perl SOAP

Posted on 2009-04-12
3
372 Views
Last Modified: 2012-06-27
hello experts  .
i have web service written in java .
i want to write client version to this web service.
help me to do this.
i have attached xml file

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

<wsdl:definitions targetNamespace="http://192.168.1.4/services/ExportOperationsBean" xmlns:tns3="http://lang.java" xmlns:tns7="http://reflect.sun" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://security.java" xmlns:impl="http://192.168.1.4/services/ExportOperationsBean" xmlns:intf="http://192.168.1.4/services/ExportOperationsBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns4="http://io.java" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns1="http://localhost" xmlns="http://schemas.xmlsoap.org/wsdl/"><wsdl:types><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="ServiceSpecInfoBean"><sequence><element name="ID" nillable="true" type="xsd:int"/><element name="comment" nillable="true" type="xsd:string"/><element name="currencyID" nillable="true" type="xsd:int"/><element name="name" nillable="true" type="xsd:string"/><element name="serviceTypeID" nillable="true" type="xsd:int"/></sequence></complexType><complexType name="ServiceInfoBean"><sequence><element name="serviceSpecId" type="xsd:int"/></sequence></complexType><complexType name="AccountInfoBean"><sequence><element name="accountNumber" nillable="true" type="xsd:string"/><element name="limit" type="xsd:double"/><element name="locked" type="xsd:int"/><element name="name" nillable="true" type="xsd:string"/><element name="number" nillable="true" type="xsd:string"/><element name="pinCode" nillable="true" type="xsd:string"/><element name="services" nillable="true" type="tns1:ServiceInfoBean" maxOccurs="unbounded"/><element name="startAmount" type="xsd:double"/></sequence></complexType><complexType name="STBInfoBean"><sequence><element name="accountNumber" nillable="true" type="xsd:string"/><element name="activationCode" nillable="true" type="xsd:string"/><element name="locked" type="xsd:int"/><element name="mac" nillable="true" type="xsd:string"/><element name="number" nillable="true" type="xsd:string"/><element name="serialNumber" nillable="true" type="xsd:string"/><element name="services" nillable="true" type="tns1:ServiceInfoBean" maxOccurs="unbounded"/><element name="smartCardNumber" nillable="true" type="xsd:string"/><element name="type" type="xsd:int"/></sequence></complexType><complexType name="CustomerInfoBean"><sequence><element name="accounts" nillable="true" type="tns1:AccountInfoBean" maxOccurs="unbounded"/><element name="fullName" nillable="true" type="xsd:string"/><element name="isOrganization" type="xsd:boolean"/><element name="locked" type="xsd:int"/><element name="name" nillable="true" type="xsd:string"/><element name="number" nillable="true" type="xsd:string"/><element name="stbs" nillable="true" type="tns1:STBInfoBean" maxOccurs="unbounded"/></sequence></complexType><complexType name="Balance"><sequence><element name="accountNumber" nillable="true" type="xsd:string"/><element name="amount" type="xsd:float"/></sequence></complexType><complexType name="ServiceFullInfoBean"><sequence><element name="accountNumber" nillable="true" type="xsd:string"/><element name="serviceSpecID" type="xsd:int"/><element name="serviceStatusID" type="xsd:int"/><element name="startMoment" nillable="true" type="xsd:string"/><element name="stopMoment" nillable="true" type="xsd:string"/></sequence></complexType><complexType name="EntryInfoBean"><sequence><element name="ID" nillable="true" type="xsd:int"/><element name="accountID" type="xsd:int"/><element name="accountNumber" nillable="true" type="xsd:string"/><element name="amount" type="xsd:float"/><element name="description" nillable="true" type="xsd:string"/><element name="entryTypeID" type="xsd:int"/><element name="moment" nillable="true" type="xsd:string"/><element name="source" nillable="true" type="xsd:string"/><element name="sourceID" nillable="true" type="xsd:int"/></sequence></complexType><complexType name="ArrayOffAccountInfoBean"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:AccountInfoBean[]"/></restriction></complexContent></complexType><complexType name="ArrayOffBalance"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Balance[]"/></restriction></complexContent></complexType><complexType name="ArrayOffEntryInfoBean"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:EntryInfoBean[]"/></restriction></complexContent></complexType><complexType name="ArrayOffServiceSpecInfoBean"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:ServiceSpecInfoBean[]"/></restriction></complexContent></complexType><complexType name="ArrayOffCustomerInfoBean"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:CustomerInfoBean[]"/></restriction></complexContent></complexType><complexType name="ArrayOffServiceFullInfoBean"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:ServiceFullInfoBean[]"/></restriction></complexContent></complexType></schema><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://192.168.1.4/services/ExportOperationsBean"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="ArrayOf_tns2_Principal"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:Principal[]"/></restriction></complexContent></complexType><complexType name="ArrayOf_tns3_Class"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns3:Class[]"/></restriction></complexContent></complexType><complexType name="ArrayOf_tns5_Constructor"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns5:Constructor[]"/></restriction></complexContent></complexType><complexType name="ArrayOf_tns5_Field"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns5:Field[]"/></restriction></complexContent></complexType><complexType name="ArrayOf_tns5_Method"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns5:Method[]"/></restriction></complexContent></complexType><complexType name="ArrayOf_xsd_anyType"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]"/></restriction></complexContent></complexType></schema><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://security.java"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="ProtectionDomain"><sequence><element name="classLoader" nillable="true" type="xsd:anyType"/><element name="codeSource" nillable="true" type="xsd:anyType"/><element name="permissions" nillable="true" type="xsd:anyType"/><element name="principals" nillable="true" type="impl:ArrayOf_tns2_Principal"/></sequence></complexType><complexType abstract="true" name="Permission"><sequence><element name="actions" nillable="true" type="xsd:string"/><element name="name" nillable="true" type="xsd:string"/></sequence></complexType></schema><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://lang.java"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="RuntimePermission"><complexContent><extension base=""><sequence/></extension></complexContent></complexType><complexType name="Class"><sequence><element name="array" type="xsd:boolean"/><element name="classLoader" nillable="true" type="tns3:ClassLoader"/><element name="classes" nillable="true" type="impl:ArrayOf_tns3_Class"/><element name="componentType" nillable="true" type="tns3:Class"/><element name="constructors" nillable="true" type="impl:ArrayOf_tns5_Constructor"/><element name="declaredClasses" nillable="true" type="impl:ArrayOf_tns3_Class"/><element name="declaredConstructors" nillable="true" type="impl:ArrayOf_tns5_Constructor"/><element name="declaredFields" nillable="true" type="impl:ArrayOf_tns5_Field"/><element name="declaredMethods" nillable="true" type="impl:ArrayOf_tns5_Method"/><element name="declaringClass" nillable="true" type="tns3:Class"/><element name="fields" nillable="true" type="impl:ArrayOf_tns5_Field"/><element name="interface" type="xsd:boolean"/><element name="interfaces" nillable="true" type="impl:ArrayOf_tns3_Class"/><element name="methods" nillable="true" type="impl:ArrayOf_tns5_Method"/><element name="modifiers" type="xsd:int"/><element name="name" nillable="true" type="xsd:string"/><element name="package" nillable="true" type="xsd:anyType"/><element name="primitive" type="xsd:boolean"/><element name="protectionDomain" nillable="true" type="tns2:ProtectionDomain"/><element name="signers" nillable="true" type="impl:ArrayOf_xsd_anyType"/><element name="superclass" nillable="true" type="tns3:Class"/></sequence></complexType></schema><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://io.java"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="ObjectStreamField"><sequence><element name="name" nillable="true" type="xsd:string"/><element name="offset" type="xsd:int"/><element name="primitive" type="xsd:boolean"/><element name="type" nillable="true" type="tns3:Class"/><element name="typeCode" type="xsd:anyType"/><element name="typeString" nillable="true" type="xsd:string"/><element name="unshared" type="xsd:boolean"/></sequence></complexType></schema><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://reflect.sun"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType abstract="true" name="LangReflectAccess"><sequence/></complexType><complexType name="ReflectionFactory"><sequence><element name="langReflectAccess" nillable="true" type="tns7:LangReflectAccess"/></sequence></complexType></schema></wsdl:types>

  <wsdl:message name="changeCustomerNameRequest">

    <wsdl:part name="customerNumber" type="xsd:string"/>

    <wsdl:part name="name" type="xsd:string"/>

    <wsdl:part name="fullName" type="xsd:string"/>

  </wsdl:message>

  <wsdl:message name="changeCustomerNameResponse">

    <wsdl:part name="changeCustomerNameReturn" type="xsd:int"/>

  </wsdl:message>

  <wsdl:message name="addAccountRequest">

    <wsdl:part name="customerNumber" type="xsd:string"/>

    <wsdl:part name="account" type="tns1:AccountInfoBean"/>

  </wsdl:message>

  <wsdl:message name="addAccountResponse">

    <wsdl:part name="addAccountReturn" type="xsd:int"/>

  </wsdl:message>

  <wsdl:message name="getPartOfPaymentsRequest2">

    <wsdl:part name="startDate" type="xsd:string"/>

    <wsdl:part name="endDate" type="xsd:string"/>

    <wsdl:part name="startAccountNumber" type="xsd:string"/>

    <wsdl:part name="endAccountNumber" type="xsd:string"/>

    <wsdl:part name="partNumber" type="xsd:int"/>

  </wsdl:message>

  <wsdl:message name="getPartOfPaymentsResponse2">

    <wsdl:part name="getPartOfPaymentsReturn" type="tns1:ArrayOffEntryInfoBean"/>

  </wsdl:message>
 

  <wsdl:portType name="ExportOperationsBean">

    <wsdl:operation name="changeCustomerName" parameterOrder="customerNumber name fullName">

      <wsdl:input name="changeCustomerNameRequest" message="impl:changeCustomerNameRequest"/>

      <wsdl:output name="changeCustomerNameResponse" message="impl:changeCustomerNameResponse"/>

    </wsdl:operation>

    <wsdl:operation name="addAccount" parameterOrder="customerNumber account">

      <wsdl:input name="addAccountRequest" message="impl:addAccountRequest"/>

      <wsdl:output name="addAccountResponse" message="impl:addAccountResponse"/>

    </wsdl:operation>

    <wsdl:operation name="getPartOfPayments" parameterOrder="startDate endDate startAccountNumber endAccountNumber partNumber">

      <wsdl:input name="getPartOfPaymentsRequest2" message="impl:getPartOfPaymentsRequest2"/>

      <wsdl:output name="getPartOfPaymentsResponse2" message="impl:getPartOfPaymentsResponse2"/>

    </wsdl:operation>

  </wsdl:portType>
 

  <wsdl:binding name="ExportOperationsBeanSoapBinding" type="impl:ExportOperationsBean">

    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

    <wsdl:operation name="changeCustomerName">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="changeCustomerNameRequest">

        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.1.4/services/ExportOperationsBean"/>

      </wsdl:input>

      <wsdl:output name="changeCustomerNameResponse">

        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.1.4/services/ExportOperationsBean"/>

      </wsdl:output>

    </wsdl:operation>
 

    <wsdl:operation name="addAccount">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="addAccountRequest">

        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.1.4/services/ExportOperationsBean"/>

      </wsdl:input>

      <wsdl:output name="addAccountResponse">

        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.1.4/services/ExportOperationsBean"/>

      </wsdl:output>

    </wsdl:operation>
 

    <wsdl:operation name="getPartOfPayments">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="getPartOfPaymentsRequest2">

        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.1.4/services/ExportOperationsBean"/>

      </wsdl:input>

      <wsdl:output name="getPartOfPaymentsResponse2">

        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.1.4/services/ExportOperationsBean"/>

      </wsdl:output>

    </wsdl:operation>

  </wsdl:binding>

  <wsdl:service name="ExportOperationsBeanService">

    <wsdl:port name="ExportOperationsBean" binding="impl:ExportOperationsBeanSoapBinding">

      <wsdlsoap:address location="http://192.168.1.4/services/ExportOperationsBean"/>

    </wsdl:port>

  </wsdl:service>

</wsdl:definitions>

Open in new window

0
Comment
Question by:_Amanat_
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
WeiXi earned 500 total points
ID: 24128467
0
 

Author Comment

by:_Amanat_
ID: 24164699
can u write me some sample.
0
 

Author Comment

by:_Amanat_
ID: 24164704
on my web service
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MySQL Web Database 5 111
how to extract data from a table into a fixed length file 10 54
perl script help 5 234
SIMPLE Perl Regex 1 153
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now