Problem with soap based https Web service call using Web Services core
Problem with soap based https Web service call using Web Services core
- Subject: Problem with soap based https Web service call using Web Services core
- From: Vaibhao <email@hidden>
- Date: Fri, 19 Nov 2010 19:40:30 +0530
hello,
I m using Web Services Core framework to access a https based SOAP-
Web service .I am getting a error as
"/FaultCode" = -65794;
"/FaultExtra" = {
domain = -1;
error = -65795;
msg = "No valid XML data in response";
};
"/FaultString" = "/CFStreamFault";
And In WSDebugInBody , It says "The server encountered an internal
error () that prevented it from fulfilling this request.(http status
code 500)"
Actually , I have made first call to web service successfully . But
when I make second call to web service for authentication by passing
username and password , I am getting error mentioned above. So,how to
get rid of this error ?
In the technical requirements of web service , it is mentioned that
"The web service client must support accepting cookies from server
and resending them back in HTTP header lines in subsequent web service
calls. After server authenticates a user successfully through web
service, a session cookie will be sent back in response to the web
service client. The client must submit this cookie in all subsequent
interaction with the server. Otherwise, any request without this
cookie will be blocked out."
Would I need to send back cookies to make second call?
Actually , I am getting response headers from first call as
/WSDebugInHeaders" = {
Connection = close;
"Content-Type" = "text/xml;charset=\"utf-8\"";
Date = "Thu, 18 Nov 2010 13:35:50 GMT";
Server = Apache;
"Transfer-Encoding" = Identity;
};
Looking at response headers,there is no field like Set-Cookie.Then ,
how can I send cookies using Web servcies core ? Do I really need to
send it ? Is the error (http status code 500) getting because of not
sending the cookies to second call? Actually ,
I have also tried to make second request by taking response field
headers like Connection, accept-encoding,Content-Type, and Date (all
are valid Http request headers).But still I am getting the same error.
Vaibhao Mahore
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden