02-21-05 11:49 AM
Hi!
In my orchestration I have a simple xsd schema looking like this:
...
<xs:element name="InboundPO">
<xs:complexType>
<xs:sequence>
<xs:element name="customerid" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
...
I have a webservice that has a method looking like this:
...
public class InboundPO
{
...//info about a customer tec.
public string customerid;
}
[WebMethod]
public InboundPO checkcustomer(InboundPO inb)
{
...//simple control of customerid etc.
return inb;
}
...
In the orchestration I create a message whith a message assignment shape and
then I send it to the web service.
When I try this the message gets stuck in the web service, and according to
HAT there is an error in the xml document. I checked the xml document and th
ere is nothing wrong with it because if I send it to a non-webservice port e
verything runs smoothly.
Additional information: Yes, I´m aware that the prefered way to do this is t
o use the transform shape, and then it is a simple task of correlating the n
odes and elements in the xsd's with each other. But what if that is not an a
lternative(transform doesn´t work with BPEL). My limited knowledge within th
is area has led me to use Xpath but either I am doing it wrong or this simpl
y can not be done.
This is what I tried in the expression area in the message assignment shape:
Message_to_web_service.inb = xpath(InboundPO_message, "/*[local-name()='Inbo
undPO' and namespace-uri()='http://BPELProjectBTS.InboundPO']");
Where InboundPO_message is an XML document conforming to the XSD as above an
d the .inb is what the web service wants.
Do anyone know how to solve this or have hints of pages where addresing simu
lar issues?
Cincerly
Jakob
[ Post a follow-up to this message ]
|