Author |
Message
|
kartheek.sp |
Posted: Wed Jul 27, 2011 10:04 am Post subject: How to map a field to a name value pair |
|
|
 Novice
Joined: 05 Apr 2011 Posts: 21 Location: Pune
|
Please suggest me how to map a field to a name value pair (which is in wsdl) soap message. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 28, 2011 4:20 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 28, 2011 4:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Training!
(And it is still scaled back, still relevant but still doesn't address the OP's point) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 28, 2011 4:35 am Post subject: Re: How to map a field to a name value pair |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kartheek.sp wrote: |
Please suggest me how to map a field to a name value pair (which is in wsdl) soap message. |
Please suggest to us what you've tried, what happened and what you're trying to map it to.
Unless you just want us to tell you how to do it, in which case my associate's point becomes much more relevant. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kartheek.sp |
Posted: Thu Jul 28, 2011 8:41 am Post subject: Re: How to map a field to a name value pair |
|
|
 Novice
Joined: 05 Apr 2011 Posts: 21 Location: Pune
|
Vitor wrote: |
Please suggest to us what you've tried, what happened and what you're trying to map it to.
Unless you just want us to tell you how to do it, in which case my associate's point becomes much more relevant. |
I have three complex types like customer below.
<Customer>
<CustomerId>string</CustomerId>
<category>string</category>
<prefetchFilter>-6601</prefetchFilter>
<billCycleId>309</billCycleId>
<billCycleIdAfterSwitch>998</billCycleIdAfterSwitch>
<billCycleSwitch>1972-02-07T18:25:16.42</billCycleSwitch>
<ParentCustomerId>string</ParentCustomerId>
</Customer>
and i need to map all these fields of the three Complex types to a single name value pair as below:
<xs:element minOccurs="0" maxOccurs="unbounded" name="Parameter" type="tns:Parameter" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
<xs:complexType name="Parameter">
<xs:annotation>
<xs:documentation>Parameter object describes a simple
name-value pair</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="value" type="xs:string" />
</xs:complexType> |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 28, 2011 9:02 am Post subject: Re: How to map a field to a name value pair |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Vitor wrote: |
Please suggest to us what you've tried, what happened and what you're trying to map it to. |
kartheek.sp wrote: |
I have three complex types like customer below.
...
and i need to map all these fields of the three Complex types to a single name value pair as below:
...
|
So that's a very neat & well-presented answer to one of my questions.
What about the other 2? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kartheek.sp |
Posted: Thu Jul 28, 2011 9:57 am Post subject: Re: How to map a field to a name value pair |
|
|
 Novice
Joined: 05 Apr 2011 Posts: 21 Location: Pune
|
Vitor wrote: |
So that's a very neat & well-presented answer to one of my questions.
What about the other 2? |
the other two complex types are
<StatusInfo>
<errorCode>String</errorCode>
<errorStatus>String</errorStatus>
<errorDesc>String</errorDesc>
</StatusInfo>
<SubscriberIdInfo>
<subscrNumber>String</subscrNumber>
</SubscriberIdInfo> |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 28, 2011 10:03 am Post subject: Re: How to map a field to a name value pair |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kartheek.sp wrote: |
Vitor wrote: |
So that's a very neat & well-presented answer to one of my questions.
What about the other 2? |
the other two complex types are |
Apologies for my lack of clarity. I meant, "what about answers to my other 2 questions?", to wit:
- what have you tried so far (if only so no-one suggests it again)
- what happened _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|