Problem using XPATH in message assignment.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Problem using XPATH in message assignment.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problem using XPATH in message assignment.  
jakob-ch@fc.dsv.su.se


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-21-05 12:50 PM

Hi!

In my orchestration I have a simple xsd schema looking like this:

..
<xs:element name=3D"InboundPO">
<xs:complexType>
<xs:sequence>
<xs:element name=3D"customerid" type=3D"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 there is nothing wrong with it because if I send it to
a non-webservice port everything runs smoothly.

Additional information: Yes, I=B4m aware that the prefered way to do
this is to use the transform shape, and then it is a simple task of
correlating the nodes and elements in the xsd's with each other. But
what if that is not an alternative(transform doesn=B4t work with BPEL).
My limited knowledge within this area has led me to use Xpath but
either I am doing it wrong or this simply can not be done.

This is what I tried in the expression area in the message assignment
shape:

Message_to_web_service.inb =3D xpath(InboundPO_message,
"/*[local-name()=3D'InboundPO' and
namespace-uri()=3D'http://BPELProjectBTS.InboundPO']");

Where InboundPO_message is an XML document conforming to the XSD as
above and the .inb is what the web service wants.

Do anyone know how to solve this or have hints of pages where addresing
simular issues?

Cincerly=20

Jakob






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:44 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register