Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call update functionality from Java using web service

 
Pradeep Chaubey
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,
I am new to web service. I have a WSDL file. I have generated the required classes through WSDL2Java tool. Now I am unable to call update method. Please help me.... The WSDL is as follows :
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.serialssolutions.com/pqsslinking" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.serialssolutions.com/pqsslinking" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">ProQuest Sersol Provisioning Web Service. This class is the entry point to the provisioning service.</wsdl:documentation>
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.serialssolutions.com/pqsslinking">
<s:import namespace="http://microsoft.com/wsdl/types/" />
- <s:element name="Initialize">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="clientID" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="libraryHash" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="InitializeResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="InitializeResult" type="tns:Customer" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="Customer">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Settings" type="tns:Settings" />
</s:sequence>
<s:attribute name="ClientCenterUrl" type="s:string" />
<s:attribute name="ClientId" type="s:string" />
<s:attribute name="CustomerStatus" type="tns:CustomerStatus" use="required" />
<s:attribute name="LibraryHash" type="s:string" />
</s:complexType>
- <s:complexType name="Settings">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="DBSubscriptions" type="tns:ArrayOfDBSubscription" />
<s:element minOccurs="0" maxOccurs="1" name="LibraryHashRequest" type="tns:LibraryHashRequest" />
<s:element minOccurs="1" maxOccurs="1" name="LinkoutStatus" type="tns:LinkoutStatus" />
<s:element minOccurs="0" maxOccurs="1" name="ProxyUrl" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ProxyUrlAuthType" type="s:int" />
</s:sequence>
</s:complexType>
- <s:complexType name="ArrayOfDBSubscription">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="DBSubscription" nillable="true" type="tnsBSubscription" />
</s:sequence>
</s:complexType>
- <s:complexType name="DBSubscription">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AuthEntries" type="tns:AuthEntries" />
</s:sequence>
<s:attribute name="DBCode" type="s:string" />
<s:attribute name="Selected" type="s:boolean" use="required" />
</s:complexType>
- <s:complexType name="AuthEntries">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="unbounded" name="AuthEntry">
- <s:complexType>
- <s:simpleContent>
- <s:extension base="s:string">
<s:attribute name="Key" type="s:string" />
<s:attribute name="Display" type="s:string" />
<s:attribute default="false" name="Required" type="s:boolean" />
</s:extension>
</s:simpleContent>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
- <s:complexType name="LibraryHashRequest">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ContactName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="EMail" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="InstitutionName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="LibraryName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PhoneNumber" type="s:string" />
</s:sequence>
</s:complexType>
- <s:simpleType name="LinkoutStatus">
- <s:restriction base="s:string">
<s:enumeration value="Disabled" />
<s:enumeration value="Enabled" />
</s:restriction>
</s:simpleType>
- <s:simpleType name="CustomerStatus">
- <s:restriction base="s:string">
<s:enumeration value="NotConfigured" />
<s:enumeration value="NonPaying" />
<s:enumeration value="Paying" />
</s:restriction>
</s:simpleType>
<s:element name="Credentials" type="tns:Credentials" />
- <s:complexType name="Credentials">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ApplicationID" type="s1:guid" />
</s:sequence>
<s:anyAttribute />
</s:complexType>
- <s:element name="Update">
+ <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="customer" type="tns:Customer" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="UpdateResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="customer" type="tns:Customer" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="GetDatabases">
<s:complexType />
</s:element>
- <s:element name="GetDatabasesResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetDatabasesResult" type="tns:ArrayOfDatabaseItem" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfDatabaseItem">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="DatabaseItem" nillable="true" type="tnsatabaseItem" />
</s:sequence>
</s:complexType>
- <s:complexType name="DatabaseItem">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="DBCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Display" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ProviderCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ProviderDisplay" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="AuthEntries" type="tns:AuthEntries" />
</s:sequence>
</s:complexType>
- <s:element name="GetProxyUrlAuthTypes">
<s:complexType />
</s:element>
- <s:element name="GetProxyUrlAuthTypesResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetProxyUrlAuthTypesResult" type="tns:ArrayOfProxyUrlAuthType" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfProxyUrlAuthType">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="ProxyUrlAuthType" nillable="true" type="tns:ProxyUrlAuthType" />
</s:sequence>
</s:complexType>
- <s:complexType name="ProxyUrlAuthType">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="AuthenticationType" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="Display" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="Customer" nillable="true" type="tns:Customer" />
<s:element name="ArrayOfDatabaseItem" nillable="true" type="tns:ArrayOfDatabaseItem" />
<s:element name="ArrayOfProxyUrlAuthType" nillable="true" type="tns:ArrayOfProxyUrlAuthType" />
</s:schema>
- <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
- <s:simpleType name="guid">
- <s:restriction base="s:string">
<s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
</s:restriction>
</s:simpleType>
</s:schema>
</wsdl:types>
- <wsdl:message name="InitializeSoapIn">
<wsdl:part name="parameters" element="tns:Initialize" />
</wsdl:message>
- <wsdl:message name="InitializeSoapOut">
<wsdl:part name="parameters" element="tns:InitializeResponse" />
</wsdl:message>
- <wsdl:message name="InitializeCredentials">
<wsdl:part name="Credentials" element="tns:Credentials" />
</wsdl:message>
- <wsdl:message name="UpdateSoapIn">
<wsdl:part name="parameters" element="tns:Update" />
</wsdl:message>
- <wsdl:message name="UpdateSoapOut">
<wsdl:part name="parameters" element="tns:UpdateResponse" />
</wsdl:message>
- <wsdl:message name="UpdateCredentials">
<wsdl:part name="Credentials" element="tns:Credentials" />
</wsdl:message>
- <wsdl:message name="GetDatabasesSoapIn">
<wsdl:part name="parameters" element="tns:GetDatabases" />
</wsdl:message>
- <wsdl:message name="GetDatabasesSoapOut">
<wsdl:part name="parameters" element="tns:GetDatabasesResponse" />
</wsdl:message>
- <wsdl:message name="GetDatabasesCredentials">
<wsdl:part name="Credentials" element="tns:Credentials" />
</wsdl:message>
- <wsdl:message name="GetProxyUrlAuthTypesSoapIn">
<wsdl:part name="parameters" element="tns:GetProxyUrlAuthTypes" />
</wsdl:message>
- <wsdl:message name="GetProxyUrlAuthTypesSoapOut">
<wsdl:part name="parameters" element="tns:GetProxyUrlAuthTypesResponse" />
</wsdl:message>
- <wsdl:message name="GetProxyUrlAuthTypesCredentials">
<wsdl:part name="Credentials" element="tns:Credentials" />
</wsdl:message>
- <wsdl:message name="InitializeHttpGetIn">
<wsdl:part name="clientID" type="s:string" />
<wsdl:part name="libraryHash" type="s:string" />
</wsdl:message>
- <wsdl:message name="InitializeHttpGetOut">
<wsdl:part name="Body" element="tns:Customer" />
</wsdl:message>
<wsdl:message name="GetDatabasesHttpGetIn" />
- <wsdl:message name="GetDatabasesHttpGetOut">
<wsdl:part name="Body" element="tns:ArrayOfDatabaseItem" />
</wsdl:message>
<wsdl:message name="GetProxyUrlAuthTypesHttpGetIn" />
- <wsdl:message name="GetProxyUrlAuthTypesHttpGetOut">
<wsdl:part name="Body" element="tns:ArrayOfProxyUrlAuthType" />
</wsdl:message>
- <wsdl:message name="InitializeHttpPostIn">
<wsdl:part name="clientID" type="s:string" />
<wsdl:part name="libraryHash" type="s:string" />
</wsdl:message>
- <wsdl:message name="InitializeHttpPostOut">
<wsdl:part name="Body" element="tns:Customer" />
</wsdl:message>
<wsdl:message name="GetDatabasesHttpPostIn" />
- <wsdl:message name="GetDatabasesHttpPostOut">
<wsdl:part name="Body" element="tns:ArrayOfDatabaseItem" />
</wsdl:message>
<wsdl:message name="GetProxyUrlAuthTypesHttpPostIn" />
- <wsdl:message name="GetProxyUrlAuthTypesHttpPostOut">
<wsdl:part name="Body" element="tns:ArrayOfProxyUrlAuthType" />
</wsdl:message>
- <wsdl:portType name="PQSSProvisioningSoap">
- <wsdlperation name="Initialize">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves Customer information for each Linkout request.</wsdl:documentation>
<wsdl:input message="tns:InitializeSoapIn" />
<wsdlutput message="tns:InitializeSoapOut" />
</wsdlperation>
- <wsdlperation name="Update">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Updates provisioning settings</wsdl:documentation>
<wsdl:input message="tns:UpdateSoapIn" />
<wsdlutput message="tns:UpdateSoapOut" />
</wsdlperation>
- <wsdlperation name="GetDatabases">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves master Sersol database list</wsdl:documentation>
<wsdl:input message="tns:GetDatabasesSoapIn" />
<wsdlutput message="tns:GetDatabasesSoapOut" />
</wsdlperation>
- <wsdlperation name="GetProxyUrlAuthTypes">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves master Sersol Proxy Url Authentication types list</wsdl:documentation>
<wsdl:input message="tns:GetProxyUrlAuthTypesSoapIn" />
<wsdlutput message="tns:GetProxyUrlAuthTypesSoapOut" />
</wsdlperation>
</wsdl:portType>
- <wsdl:portType name="PQSSProvisioningHttpGet">
- <wsdlperation name="Initialize">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves Customer information for each Linkout request.</wsdl:documentation>
<wsdl:input message="tns:InitializeHttpGetIn" />
<wsdlutput message="tns:InitializeHttpGetOut" />
</wsdlperation>
- <wsdlperation name="GetDatabases">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves master Sersol database list</wsdl:documentation>
<wsdl:input message="tns:GetDatabasesHttpGetIn" />
<wsdlutput message="tns:GetDatabasesHttpGetOut" />
</wsdlperation>
- <wsdlperation name="GetProxyUrlAuthTypes">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves master Sersol Proxy Url Authentication types list</wsdl:documentation>
<wsdl:input message="tns:GetProxyUrlAuthTypesHttpGetIn" />
<wsdlutput message="tns:GetProxyUrlAuthTypesHttpGetOut" />
</wsdlperation>
</wsdl:portType>
- <wsdl:portType name="PQSSProvisioningHttpPost">
- <wsdlperation name="Initialize">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves Customer information for each Linkout request.</wsdl:documentation>
<wsdl:input message="tns:InitializeHttpPostIn" />
<wsdlutput message="tns:InitializeHttpPostOut" />
</wsdlperation>
- <wsdlperation name="GetDatabases">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves master Sersol database list</wsdl:documentation>
<wsdl:input message="tns:GetDatabasesHttpPostIn" />
<wsdlutput message="tns:GetDatabasesHttpPostOut" />
</wsdlperation>
- <wsdlperation name="GetProxyUrlAuthTypes">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Retrieves master Sersol Proxy Url Authentication types list</wsdl:documentation>
<wsdl:input message="tns:GetProxyUrlAuthTypesHttpPostIn" />
<wsdlutput message="tns:GetProxyUrlAuthTypesHttpPostOut" />
</wsdlperation>
</wsdl:portType>
- <wsdl:binding name="PQSSProvisioningSoap" type="tns:PQSSProvisioningSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdlperation name="Initialize">
<soapperation soapAction="http://www.serialssolutions.com/pqsslinking/Initialize" style="document" />
- <wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:InitializeCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap:body use="literal" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="Update">
<soapperation soapAction="http://www.serialssolutions.com/pqsslinking/Update" style="document" />
- <wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:UpdateCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap:body use="literal" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetDatabases">
<soapperation soapAction="http://www.serialssolutions.com/pqsslinking/GetDatabases" style="document" />
- <wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:GetDatabasesCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap:body use="literal" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetProxyUrlAuthTypes">
<soapperation soapAction="http://www.serialssolutions.com/pqsslinking/GetProxyUrlAuthTypes" style="document" />
- <wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:GetProxyUrlAuthTypesCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap:body use="literal" />
</wsdlutput>
</wsdlperation>
</wsdl:binding>
- <wsdl:binding name="PQSSProvisioningSoap12" type="tns:PQSSProvisioningSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdlperation name="Initialize">
<soap12peration soapAction="http://www.serialssolutions.com/pqsslinking/Initialize" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
<soap12:header message="tns:InitializeCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap12:body use="literal" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="Update">
<soap12peration soapAction="http://www.serialssolutions.com/pqsslinking/Update" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
<soap12:header message="tns:UpdateCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap12:body use="literal" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetDatabases">
<soap12peration soapAction="http://www.serialssolutions.com/pqsslinking/GetDatabases" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
<soap12:header message="tns:GetDatabasesCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap12:body use="literal" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetProxyUrlAuthTypes">
<soap12peration soapAction="http://www.serialssolutions.com/pqsslinking/GetProxyUrlAuthTypes" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
<soap12:header message="tns:GetProxyUrlAuthTypesCredentials" part="Credentials" use="literal" />
</wsdl:input>
- <wsdlutput>
<soap12:body use="literal" />
</wsdlutput>
</wsdlperation>
</wsdl:binding>
- <wsdl:binding name="PQSSProvisioningHttpGet" type="tns:PQSSProvisioningHttpGet">
<http:binding verb="GET" />
- <wsdlperation name="Initialize">
<httpperation location="/Initialize" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdlutput>
<mime:mimeXml part="Body" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetDatabases">
<httpperation location="/GetDatabases" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdlutput>
<mime:mimeXml part="Body" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetProxyUrlAuthTypes">
<httpperation location="/GetProxyUrlAuthTypes" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdlutput>
<mime:mimeXml part="Body" />
</wsdlutput>
</wsdlperation>
</wsdl:binding>
- <wsdl:binding name="PQSSProvisioningHttpPost" type="tns:PQSSProvisioningHttpPost">
<http:binding verb="POST" />
- <wsdlperation name="Initialize">
<httpperation location="/Initialize" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdlutput>
<mime:mimeXml part="Body" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetDatabases">
<httpperation location="/GetDatabases" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdlutput>
<mime:mimeXml part="Body" />
</wsdlutput>
</wsdlperation>
- <wsdlperation name="GetProxyUrlAuthTypes">
<httpperation location="/GetProxyUrlAuthTypes" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdlutput>
<mime:mimeXml part="Body" />
</wsdlutput>
</wsdlperation>
</wsdl:binding>
- <wsdl:service name="PQSSProvisioning">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">ProQuest Sersol Provisioning Web Service. This class is the entry point to the provisioning service.</wsdl:documentation>
- <wsdl:port name="PQSSProvisioningSoap" binding="tns:PQSSProvisioningSoap">
<soap:address location="http://seadev-dnet3.devqa.sersol.il.pqe:8080/PQSSProvisioning.asmx" />
</wsdl:port>
- <wsdl:port name="PQSSProvisioningSoap12" binding="tns:PQSSProvisioningSoap12">
<soap12:address location="http://seadev-dnet3.devqa.sersol.il.pqe:8080/PQSSProvisioning.asmx" />
</wsdl:port>
- <wsdl:port name="PQSSProvisioningHttpGet" binding="tns:PQSSProvisioningHttpGet">
<http:address location="http://seadev-dnet3.devqa.sersol.il.pqe:8080/PQSSProvisioning.asmx" />
</wsdl:port>
- <wsdl:port name="PQSSProvisioningHttpPost" binding="tns:PQSSProvisioningHttpPost">
<http:address location="http://seadev-dnet3.devqa.sersol.il.pqe:8080/PQSSProvisioning.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


Please help me to get rid of this problem.
 
Pradeep Chaubey
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am still facing problem to call Update method . I am able to call get methods from the web services provided in the wsdl file.
Please assist me to get rid of this problem..


thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I am unable to call update method.

What does that mean, exactly? The WSDL doesn't help, what's important is the code.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What does that mean, exactly? The WSDL doesn't help, what's important is the code.

...and any exceptions that occur, as a result of you trying to call the function.
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic