 |
|
 |
Hi Friends,
I am getting problem to call update method of the web service. The wsdl file is below. I am calling it from axis1.4 client. Please help me guys, I am stop at this place. I am not able to proceed.
<?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>
Thanks
Pradeep
|
|
|
|
 |
|
 |
HI Fahad,
I have to consume a .net web service over ssl in java.
When i open the wsdl in browser i have to provide some credentials to get it opened.
Initially when I was trying to create client stub via wsdl2java using actual uri (i.e. https:/....) i was getting following error-----
org.apache.axis2.AxisFault: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So I copied the wsdl and schema into local machine changed the schemalocation in wsdl to local machine and created client stub.
Now when i fire a method call I am again getting same error.
I have read into some forums that I have to provide some certificate while making call like below.
System.setProperty("javax.net.ssl.trustStore", "keys/sec.jks"); System.setProperty("javax.net.ssl.trustStorePassword", "password"); System.setProperty("javax.net.ssl.trustStoreType","JKS");
but i am not very clear about this what keys and what password i have to provide. Regarding this Should I contact .net webservice team
Please help me out.
I am pasting the exact error below
***************************************************
org.apache.axis2.AxisFault: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.hp.globalops.hppws.DocLiteralServiceStub.checkUserExists(DocLiteralServiceStub.java:1343)
at com.hp.globalops.hppws.client.main(client.java:40)
Caused by: com.ctc.wstx.exc.WstxIOException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313)
at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:146)
at org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer.flush(MTOMAwareXMLSerializer.java:79)
at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:94)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(OMSourcedElementImpl.java:664)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:918)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:240)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:228)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:471)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
... 19 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1035)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)
at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99)
at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
... 30 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191)
at sun.security.validator.Validator.validate(Validator.java:218)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1014)
... 44 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280)
... 50 more
|
|
|
|
 |
|
 |
Hi,
I have followed the steps in the article to create the stubs for webservice
I am able to instantiate Locator and get the interface but
When I call the webmethod from my client program, I get an exception
java.net.UnknownHostException: USE_ADDRESS_RETURNED_BY_LOCATION_SERVICE
What is the root cause and how can I solve it?
Thanks,
Gowtam.
|
|
|
|
 |
|
 |
Hi.
I also found that the WSDL file had following address location?
;
Is that the reason i am not able to call webmethods?
Thanks,
Gowtam.
|
|
|
|
 |
|
 |
<wsdlsoap:address location="https://USE_ADDRESS_RETURNED_BY_LOCATION_SERVICE/services/V4/PlacementService" />
|
|
|
|
 |
|
 |
Replace USE_ADDRESS_RETURNED_BY_LOCATION_SERVICE with valid url and try again.
- Fahad
|
|
|
|
 |
|
 |
hi.. i have encountered the following error while converting WSDL2Java: java.lang.NoClassDefFoundError: org.apache.axis.wsdl.WSDL2Java plz help mw with the proper solution and reason for this problem. The classpath is set properly and my Wsdl file is running on Apache axis. regards, prince
|
|
|
|
 |
|
 |
Just add to your %AXISCLASSPATH% -> %AXIS_LIB%\wsdl4j-1.5.1.jar
|
|
|
|
 |
|
 |
Hi
I am trying to consume a web service from .Net. I have used the wsdl.exe and disco methods and all this has done is created the classes for me and I am still unable to actually discover the java web service has any body got any ideas....
Many Thanks
|
|
|
|
 |
|
 |
Hi all.
I'm having a problem while writing a web service client to access a web service installed on a remote computer. The web service is the "SRW" ( Search and Retrieve Web Service ).
I've already wrote the client code in Java language (helped by WSDL2JAVA tool with Eclipse), and it works fine. Now i need to write it in C# in another computer, to access SRW on the other one.
I'm using Visual Studio 2005.
My problem is, while adding the web reference to my project in VS, Vs doesn't recogzine all the classes of the web-service, and i think that's because the Web Service has some classes that are extended by apache axis, in java. The WSDl was generated by apache axis i think...
Visual Studio, doesn't have any means to interacting with apache axis on the client side ?
So, resuming i need to access a web service in java, by a C# web client.
Do you know any way of interacting Visual sTUDIO with the apache axis ? I'm saying this because i think the problem comes from there...
Here's an example of a class SRWSampleServiceLocator in Java, generated by WSDL2JAVA:
#################################
public class SRWSampleServiceLocator extends org.apache.axis.client.Service implements gov.loc.www.zing.srw.srw_sample_service.SRWSampleService {
// Use to get a proxy class for SRW
private final java.lang.String SRW_address = "http://insertserver/inserturl/";
public java.lang.String getSRWAddress() {
return SRW_address;
}
################################
Hope you can help.
best regards
Guilherme
|
|
|
|
 |
|
 |
VS.net 2005 consumes web services in a different way than Apache AXIS. VS.net will generate
only one proxy class and you can use that like any other local class with few exceptions.
For the above example if you try to consume VS.net will only generate one class HelloWorld
with methods for calling HelloWorld.SayHelloWorld() synchrolously and asynchronosly.
Please refer to the following tutorial for consuming web services with VS.net.
http://www.west-wind.com/presentations/dotnetwebservices/DotNetWebServices.asp[^]
Hope that helps ,
Fahad
|
|
|
|
 |
|
 |
Hi !
I've already began to read the page that you supplied. Thank you for that.
Like you said, apache axis consume web services in a different way than .NET, but it is possible what i want ? (access a web service consumed by java apache axis, by a .NET c# client) ?
I think i can access the web service, but there are some issues that i've noticed.
There are some methods of the SRW web service that have parameters with apache axis types (ex. NonNegativeInteger; PositiveInteger type). My question is, how am i going to access those methods that are required for what i want, without any integration for apache axis data types...?
Is it possible a conversion from NonNegativeInteger to an Int type ? or a PositiveInteger type to an Int type ?
best regards
Guilherme
|
|
|
|
 |
|
 |
If those are classes, then .Net should generate classes for you to use with provided WSDL.
If those are convert into just primitive integer, then you will have to do the data checking on the
client but this should not be the case.
Can you please post the signature of the method in .NET C# (VS.net 2005) which takes
those arguments (PositiveInteger etc)?
Thanks.
Fahad
|
|
|
|
 |
|
 |
I have been using NetBeans5.0,Tomcat 5.0 and latest version of Axis.
My target is to consume a web service from www.webserviceX.net. But I am not able to do it.
I am getting following error
"C:\MyJavaPrograms\MyWebServices\nbproject\build-impl.xml:281: taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found"
Let me share with you the procedure I followed:
Step 1: I copied the wsdl file called Global Weather from webserviceX.net
Step 2: I used wsdl2 Java and I got four files
Step 3: I have written code for consuming the service.
I am putting the code for my Java File and the WSDL command I used.
One more thing. I work in a software company and we have proxy alos so please suggest me a solution.
public class Weather {
/** Creates a new instance of Weather */
public static void main(String [] args)
{
String Country="India";
try
{
GlobalWeatherLocator loc = new GlobalWeatherLocator();
GlobalWeatherSoap port = loc.getGlobalWeatherSoap();
System.out.println(port.getCitiesByCountry(Country));
}
catch(Exception e)
{System.out.println(e.getMessage());}
}
}
java org.apache.axis.wsdl.WSDL2Java http://localhost:8000/Latest/globalweather.wsdl
But, please remember this service is from teh internet.
Pleaase help me out
thanks
|
|
|
|
 |
|
 |
Did you setup enviorment variables for AXIS?
Looks like your missing .jar file references.
|
|
|
|
 |
|
 |
Dear Faheed,
I downloaded your example. It worked fine. But after that when I try to replace http://localhost/Helloworld... with java org.apache.axis.wsdl.WSDL2Java http://www.webservicex.net/globalweather.asmx?wsdl
than I get the following error.
Error
java.net.UnknownHostException: www.webservicex.net
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:784)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:736)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:661)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:905)
I think there are some proxy issues but not very sure
Thanks a lot for your help
|
|
|
|
 |
|
 |
I consume web services who return text or .. But I have problems to consume web services who return datatable. yeah i have web services in ASP.NET and I try to consume them in Jbuilder 2005.
please contact me in mesbih@gmail.com . Thanks a lot.
Mesbih
|
|
|
|
 |
|
|
 |
|
 |
http://casino-slots.ceroline.info/ http://casino-slots.ceroline.info/
|
|
|
|
 |
|
 |
Hello all,
Iam able to access the .Net web service using the java client with the help of access...but it is possible if anonymous access is enabled on remote machine where webservice resides. If anonymous access is disabled then how to pass user credentilas from java client usibg axis.
regards,
shamim
|
|
|
|
 |
|
|
 |
|
 |
Hi,
I am new to webservices.I need to access .NET webservice in Java.The article was very useful.
I am working on windows system.I followed the procedure as mentioned in the article.Everything is working fine.I am able to accesss the .NET webservice through java.
The problem I m facing is,executing the same in the "client's system".Its a Sun OS 5.9.I have deployed following jars in the classpath
axis.jar
jaxrpc.jar
saaj.jar
soap.jar
wsdl4j-1.5.1.jar
commons-discovery-0.2.jar
commons-httpclient-3.0-rc2.jar
xerces.jar
commons-logging-1.0.4.jar
I have written a JSP to access the webservice(called PPDSWebService).I am getting the following error and the JSp is not getting executed
java.lang.NoSuchMethodError
at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:136)
at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:65)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.(Service.java:113)
at com.BrooksInstrument.PPDSWebService.PPDSWebServiceLocator.(PPDSWebServiceLocator.java:12)
at _oa__html._XXASOBRKGPSS__Contact._jspService(_XXASOBRKGPSS__Contact.java:56)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:484)
This is the error i get in the remote client machine.
but in my local system, it works perfectly fine.
Can u please help me in solving it out?
Waiting for an answer
Thanks,
Gowtam
|
|
|
|
 |
|
 |
Hi,
Can you please check the url field in the generated classes. I bet its
localhost . Try to change that to the computer name or the IP address and that should solve the problem.
Thanks,
Fahad
|
|
|
|
 |
|
 |
Hi Sir,
Thanks for replying.
Please validate my understanding of your reply.
The WebService I am using are 1)PPDSWebService and 2)VASEWebService.
Let me talk about PPDSWebService, as the other one is similar.
By following the steps as in ur article following .java files were generated
with a directory structure(package) of com.ABC.PPDSWebService
- PPDSWebService.java
- PPDSWebServiceLocator.java
- PPDSWebServiceSoap.java
- PPDSWebServiceSoapStub.java
and 2 additional classes similar to those in .NET
- FluidData.java
- FluidInfo.java
Similarly for VASEWebService, 4 java files for webservice and few additional java files(similar to .NET) were generated with a directory structure of
com.ABC.VASEWebService
As per your answer, I searched for the url field in all the classes generated as mentioned above.But i did not get any entry called "localhost".
In PPDSWebServiceLocator file,there was URL field pointing to the DNS name of the system having .NET WebService.
So, i guess i have not understood your reply properly.Sorry.
And, I apologise for not mentioning the problem properly.
I have detailed out the reason.I will be thankful to you if u read the following with enough patience.
Actually,I am working in Oracle APPS.
I have placed all the java files(compiled and created as JAR)in the server machine(where ORACLE APPS is installed -142.102.27.244)and have written a JSP to access the WebService.When I execute the JSP in my browser(as client for the server - 142.102.27.188) it is working perfectly fine and it is true with all other client systems.The java files for the webservices are not in my local system.It is in the server.
For this to happen I have placed following Apache Axis jars in the classpath in the server.because my JSPs placed in the server in a different directory need to access those jars
- axis.jar
- jaxrpc.jar
- saaj.jar
- soap.jar
- wsdl4j-1.5.1.jar
- commons-logging-1.0.4.jar
- commons-discovery-0.2.jar
I have compiled the java classes of webservice and created a JAR called com.jar and have placed it in the classpath.
The problem is,
Now we need to use the customer's system as our server.
So i placed all JSPs,servlet in the remote server(155.130.2.156) but not JARs
When i accessed the JSP without placing any of the Apache Jars and com.jar(webservice), the error is "PPDSWebServiceLocator class is not found".
Now i placed com.jar in the classpath.
When i called JSP again, the next error is "org/apache/axis/client/Service.class not found".Now i placed axis.jar in the classpath
So, when i executed the same JSP again, next error was
"javax/xml/rpc/ServiceException.class not found".Now i placed jaxrpc.jar in classpath.
Similarly, next error is "org/apache/commons/discovery/tools/DiscoverSingleton".Now i placed commons-logging-1.0.4.jar.
Similarly, next error is "org/apache/commons/discovery/tools/DiscoverSingleton".I placed commons-discovery-0.2.jar in the classpath.
Next error is "org/xml/sax/ContentHandler". Placed xerces.jar in the classpath.
Next error being "javax/xml/soap/SOAPException". For this I placed saaj.jar.
Now I am getting the error(which i am not able to rectify)
Exception in thread "main" java.lang.NoSuchMethodError
at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:136)
at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:65)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.(Service.java:113)
at com.ABC.PPDSWebService.PPDSWebServiceLocator.(PPDSWebServiceLocator.java:12)
at XXASOBRKGPSS_Controller.main(XXASOBRKGPSS_Controller.java:11)
I do not know the reason behind this error.The classes shown in the stackTrace are present in "axis.jar"
In our server(142.102.27.244), i am using the same "axis.jar" without any probelm.Do not know what is going wrong in accessing the same jar from the customers server.
One difference to note down is that,
customers server doesnt ask for "wsdl4j-1.5.1.jar",where as our server asks for it.
customer server requires "xerces.jar", where as our local server doesnt ask for it.
Thanks for the time spent for me.
Waiting for a good tip of solution from you.
Gowtam.
|
|
|
|
 |
|
 |
Hi Gowtam,
I am getting the same problem .
the expection message is follows.
Failure trying to get the Call object; nested exception is:
java.lang.NoSuchMethodError: org.apache.axis.client.Stub._createCall()Lorg/apache/axis/client/Call;
If you find the answer, Please send the solution to the following addresss.
ramesh-it.kumar@db.com
S.Rameshkumar
|
|
|
|
 |