Win a copy of Spring Boot in Practice this week in the Spring forum!

K Saleem

Greenhorn
+ Follow
since Aug 03, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by K Saleem

request is same, but we have no tool to compare or get the request format.
from either client..
but the proper format of the request as follows

Here the request format is defined.
http://www.codebump.com/services/ZipCodeLookup.asmx?op=GetDistanceBetweenZipCodes

18 years ago
Thanks,

Here is the code we are using to call the service and geting the following error

Generated fault:

Fault Code = soap:Server

Fault String = Server was unable to process request. --> Authentication failed. Subscription ID is empty

Regards,
KS

18 years ago
Yes, I have the subscription id and able to access the service using .NET client and a web interface.

KS
18 years ago
Dear Friends,

I am trying to access webservices using java client. I am getting following error:

Fault Code = soap:Server

Fault String = Server was unable to process request. --> Authentication failed. Subscription ID is empty


The service provider providing clinet in .NET ,and our requirement is to use the same service( to find the distance betweent two zip code) in Java.

I have to set sessionID in the header , so the webservice authenticate me in order to use this service.

Please share any sample code, that is doing similar functionality, or kind of help to resolve this problem.


any help in this regard would be highly appreciated.


http://www.codebump.com/services/ZipCodeLookup.asmx?op=GetDistanceBetweenZipCodes
http://www.codebump.com/services/ZipCodeLookup.asmx?WSDL



********************** SOAP REQUEST ****************************************
POST /services/ZipCodeLookup.asmx HTTP/1.1
Host: www.codebump.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://skats.net/services/GetDistanceBetweenZipCodes"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://skats.net/services/" xmlns:types="http://skats.net/services/encodedTypes" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<tns:AuthenticationHeader>
<SessionID xsi:type="xsd:string">string</SessionID>
</tns:AuthenticationHeader>
</soap:Header>

<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:GetDistanceBetweenZipCodes>
<zip1 xsi:type="xsd:string">string</zip1>
<zip2 xsi:type="xsd:string">string</zip2>
</tns:GetDistanceBetweenZipCodes>
</soap:Body>
</soap:Envelope>

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

********************** SOAP Response ****************************************
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://skats.net/services/" xmlns:types="http://skats.net/services/encodedTypes" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:GetDistanceBetweenZipCodesResponse>
<GetDistanceBetweenZipCodesResult xsi:type="xsd:float">float</GetDistanceBetweenZipCodesResult>
</tns:GetDistanceBetweenZipCodesResponse>
</soap:Body>
</soap:Envelope>
****************************************************************************************


Thanks,

KS
18 years ago