Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Newbie: Simple webservice orchestration › Newbie: Simple webservice orchestration
I’ve gone throug the creation of correaltion again. No error messages or compilation failures. OrganizationNumber is of type xs:string and should not be problem.
I’m starting to think it’s the format of the schema that is autogenerated from the webservice that is the problem. You said something about the OrganizationNumber had to be unique in the schema. Well, the schema shows all the classes that are used throughout all the webservice-methods. I’m using only two of those web-methods. The class I’m using to correlate on, lets call it ClassA has an inherited ClassAExtended that of course also holds the OrganizationNumber. Could that be the problem ? In the Schema, it’s looks like this.
<Schema>
ClassSomething
…
ClassSomethingElse
…
ClassA
____<Equivalent>
______<ClassAExtended>
_______<Sequence> (This one is grey and contains all the info of ClassA)
_______<Sequence>
__________AdditionalAttribute1
__________AdditionalAttribute2
______<ClassA>
_________<Sequence>
____________Name
____________OrganizationNumber
____________AnotherAttribute1
____________AnotherAttribute2
The XML look like this
…
<xs:complexType name=\”ClassA\”>
<xs:sequence>
<xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”Name\” type=\”xs:string\” />
<xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”OrganizationNumber\” type=\”xs:string\” />
…
</xs:sequence>
</xs:complexType>
…
– <xs:complexType name=\”ClassAExtended\”>
– <xs:complexContent mixed=\”false\”>
– <xs:extension base=\”tns:ClassA\”>
– <xs:sequence>
<xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”ExtraAttribute\” type=\”tns:ExtraType\” />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name=\”ExtraType\”>
<xs:sequence>
<xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”ExtraAttribute1\” type=\”xs:string\” />
<xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”ExtraAttribute2\” type=\”xs:string\” />
</xs:sequence>
</xs:complexType>
…
There is automatically generated Request and Response Message Types for all the webmethods. I have used these Message Types to define all my messages.
The messages I defined are
1. AddReq
2. AddRes
3. UpdateReq
4. UpdateRes
AddReq is used in 1a) and 1b)
AddRes is used in 1c)
UpdateReq is used in 2a) and 2b)
UpdateRes is used in 2c)
Another thought. Could there be a namespace problem ? The DatabaseWS has the namespace \”http://project.domain.com/portal/ws/\”. The BizTalkWS is deployed with the namespace \”http://project.domain.com/portal/biztalk/\”
I’m really lost here, can anyone verify if this orchestration should even work, or maybe how You would constructed an orchestration based on the same functionality.