Click here to Skip to main content
16,014,392 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Calender and text box Pin
Gaurav Dudeja India4-Apr-10 19:43
Gaurav Dudeja India4-Apr-10 19:43 
GeneralRe: Calender and text box Pin
future38394-Apr-10 19:48
future38394-Apr-10 19:48 
GeneralRe: Calender and text box Pin
Gaurav Dudeja India4-Apr-10 19:52
Gaurav Dudeja India4-Apr-10 19:52 
GeneralRe: Calender and text box Pin
future38395-Apr-10 1:03
future38395-Apr-10 1:03 
GeneralRe: Calender and text box Pin
Gaurav Dudeja India5-Apr-10 1:08
Gaurav Dudeja India5-Apr-10 1:08 
AnswerRe: Calender and text box Pin
T M Gray5-Apr-10 10:11
T M Gray5-Apr-10 10:11 
AnswerRe: Calender and text box Pin
Mohan H Prajapati5-Apr-10 23:42
Mohan H Prajapati5-Apr-10 23:42 
QuestionAccessing SOAP message response elements Pin
parakyar4-Apr-10 8:35
parakyar4-Apr-10 8:35 
Hi,
I have created a SOAP Web Service client (as a proxy class). I am able to successfully send and receive a SOAP message to the SOAP Server. Here's where my hickup is though: when i receive back the response from the SOAP server, I can access most of its elements but the one called "errors". Here's the raw XML that is sent from the soap server:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<pxb2b:register-user-reply xmlns:pxb2b="something">
<pxb2b:datetime>2010-03-31T18:08:55.938</pxb2b:datetime>
<pxb2b:px-transaction-id>0</pxb2b:px-transaction-id>
<pxb2b:response-code>400</pxb2b:response-code>
<pxb2b:errors>
<pxb2b:error code="already_registered" field="error">This card is already registered</pxb2b:error>
</pxb2b:errors>
</pxb2b:register-user-reply>
</soap-env:Body>
</soap-env:Envelope>


Here's how I try to do it:
First I get the response object (which is part of the proxy class)

Dim pxRegUserReply As registeruserreply
pxRegUserReply = pxRegUserBinding.registeruser(pxRegUserRequest)

Through this pxRegUserReply object I can access all of the XML elements, e.g. pxRegUserReply.responsecode, pxRegUserReply.pxtransactionid and so on.

The problem is that when i try to do this pxRegUserReply.errors, I get a zero length element.
and pxRegUserReply.errors.Length returns 0.

Can somebody explain what I am doing wrong? I am kinda new to VB, so it may be something very simple.

Thank you for your input!
QuestionLearning Test Driven Development in VS 2008 - ASP.NET Pin
Nadia Monalisa4-Apr-10 2:00
Nadia Monalisa4-Apr-10 2:00 
AnswerRe: Learning Test Driven Development in VS 2008 - ASP.NET Pin
N a v a n e e t h4-Apr-10 2:40
N a v a n e e t h4-Apr-10 2:40 
GeneralRe: Learning Test Driven Development in VS 2008 - ASP.NET Pin
Nadia Monalisa4-Apr-10 2:54
Nadia Monalisa4-Apr-10 2:54 
GeneralRe: Learning Test Driven Development in VS 2008 - ASP.NET Pin
N a v a n e e t h4-Apr-10 3:55
N a v a n e e t h4-Apr-10 3:55 
GeneralRe: Learning Test Driven Development in VS 2008 - ASP.NET Pin
Nadia Monalisa4-Apr-10 15:06
Nadia Monalisa4-Apr-10 15:06 
GeneralRe: Learning Test Driven Development in VS 2008 - ASP.NET Pin
Kevin McFarlane4-Apr-10 8:46
Kevin McFarlane4-Apr-10 8:46 
AnswerRe: Learning Test Driven Development in VS 2008 - ASP.NET Pin
Kevin McFarlane4-Apr-10 8:39
Kevin McFarlane4-Apr-10 8:39 
QuestionCreate virtual subdomain programaticaly Pin
mehran.asg3-Apr-10 21:18
mehran.asg3-Apr-10 21:18 
QuestionStore repeater value in session variable Pin
lionelcyril3-Apr-10 20:45
lionelcyril3-Apr-10 20:45 
AnswerRe: Store repeater value in session variable Pin
N a v a n e e t h4-Apr-10 2:42
N a v a n e e t h4-Apr-10 2:42 
GeneralRe: Store repeater value in session variable Pin
lionelcyril4-Apr-10 6:17
lionelcyril4-Apr-10 6:17 
QuestionDistorting Text Pin
Randal Vance Cunanan3-Apr-10 20:30
Randal Vance Cunanan3-Apr-10 20:30 
AnswerRe: Distorting Text Pin
N a v a n e e t h4-Apr-10 2:43
N a v a n e e t h4-Apr-10 2:43 
AnswerRe: Distorting Text Pin
Gary Stafford4-Apr-10 16:21
Gary Stafford4-Apr-10 16:21 
GeneralRe: Distorting Text Pin
Randal Vance Cunanan4-Apr-10 16:40
Randal Vance Cunanan4-Apr-10 16:40 
GeneralRe: Distorting Text Pin
Gary Stafford5-Apr-10 3:09
Gary Stafford5-Apr-10 3:09 
Questionrebinding data source controls through wizard Pin
ships_agr3-Apr-10 7:40
ships_agr3-Apr-10 7:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.