You need to sign in to do that
Don't have an account?
Soap Response: XmlStreamReader Method Help Syntax
After a succesful SOAP request. I am now trying to extract the <SagittaCode> value from the response body below. I am trying to use the XmlStreamReader method getAttributeValue, but not haveing much luck.
I am getting an error of " Illegal State: Current state is not among the states START_ELEMENT , ATTRIBUTEvalid for getAttributeValue()".
Thanks for the help!
I am getting an error of " Illegal State: Current state is not among the states START_ELEMENT , ATTRIBUTEvalid for getAttributeValue()".
Thanks for the help!
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <clientInsertResponse xmlns="http://amsservices.com/"> <clientInsertResult> <Success>boolean</Success> <SagittaId>long</SagittaId> <SagittaCode>string</SagittaCode> <Errors> <Errors> <Code>int</Code> <Message>string</Message> </Errors> <Errors> <Code>int</Code> <Message>string</Message> </Errors> </Errors> </clientInsertResult> </clientInsertResponse> </soap12:Body> </soap12:Envelope>
Hope this helps.
-greg
All Answers
Hope this helps.
-greg