Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Basic Profile 1.1

Reply
Thread Tools

Basic Profile 1.1

 
 
Nick Locke
Guest
Posts: n/a
 
      10-28-2006
I have a web service with four operations in it - add/amend/delete/retrieve.
Not surprisingly, add and amend require the same data; with delete and
retrieve each requiring just a key field. Concepts of re-use tell me that
my XSD should define the data once and the key field once, then in my WSDL I
should use each definition twice. In other words, my types should get
re-used in different WSDL messages.

However, wsdl.exe complains, citing "R2710 - ....must result in wire
signatures that are different.....". It's only a warning, but I am trying
to get this right (not almost right). I have read up on why this happens
and why it is in the standard.

BUT is there a way out that does not mean defining identical types twice?

Thanks, Nick.


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      10-28-2006
"Nick Locke" <> wrote in message
news:. uk...
>I have a web service with four operations in it -
>add/amend/delete/retrieve. Not surprisingly, add and amend require the same
>data; with delete and retrieve each requiring just a key field. Concepts
>of re-use tell me that my XSD should define the data once and the key field
>once, then in my WSDL I should use each definition twice. In other words,
>my types should get re-used in different WSDL messages.
>
> However, wsdl.exe complains, citing "R2710 - ....must result in wire
> signatures that are different.....". It's only a warning, but I am trying
> to get this right (not almost right). I have read up on why this happens
> and why it is in the standard.
>
> BUT is there a way out that does not mean defining identical types twice?


Are you wrapping the common type in a "message" type?

<xsd:complexType name="Shared"> ... </xsd:complexType>
<xsd:complexType name="AddMessage">
<xsd:sequence>
<xsd:element name="shared1" type="tns:Shared"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AmendMessage">
<xsd:sequence>
<xsd:element name="shared2" type="tns:Shared"/>
</xsd:sequence>
</xsd:complexType>

I believe you might get away without the wrappers if you simply named your
elements differently, but I'm not sure. I'd have to see your schema.

John


 
Reply With Quote
 
 
 
 
Nick Locke
Guest
Posts: n/a
 
      10-29-2006
Thanks John.

Naming the elements differently does not work, I have already tried that.
Wrapping the types was the pointer I needed.

Cheers

"John Saunders" <john.saunders at trizetto.com> wrote in message
news:eI2hiAt%...
> "Nick Locke" <> wrote in message
> news:. uk...
>>I have a web service with four operations in it -
>>add/amend/delete/retrieve. Not surprisingly, add and amend require the
>>same data; with delete and retrieve each requiring just a key field.
>>Concepts of re-use tell me that my XSD should define the data once and the
>>key field once, then in my WSDL I should use each definition twice. In
>>other words, my types should get re-used in different WSDL messages.
>>
>> However, wsdl.exe complains, citing "R2710 - ....must result in wire
>> signatures that are different.....". It's only a warning, but I am
>> trying to get this right (not almost right). I have read up on why this
>> happens and why it is in the standard.
>>
>> BUT is there a way out that does not mean defining identical types twice?

>
> Are you wrapping the common type in a "message" type?
>
> <xsd:complexType name="Shared"> ... </xsd:complexType>
> <xsd:complexType name="AddMessage">
> <xsd:sequence>
> <xsd:element name="shared1" type="tns:Shared"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="AmendMessage">
> <xsd:sequence>
> <xsd:element name="shared2" type="tns:Shared"/>
> </xsd:sequence>
> </xsd:complexType>
>
> I believe you might get away without the wrappers if you simply named your
> elements differently, but I'm not sure. I'd have to see your schema.
>
> John
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<profile><properties> with no Profile class Steven ASP .Net 5 10-24-2008 07:23 PM
Visual Studio 2008 asp.net web administration>profile: "The profile wasn't created"? Andy B ASP .Net 0 05-03-2008 05:15 PM
WS- I Basic Profile - Clarification Rasheed ASP .Net Web Services 3 07-29-2006 01:53 AM
Want to profile monitor for Fuji Frontier ICC profile? Lynn Digital Photography 9 09-08-2005 12:17 PM
Java Web Start app icons keep going in user profile not All Users profile Brad Java 1 07-19-2005 02:10 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57