Re: Mapping Response On Request/Response Port

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Wor Tony" <anthony@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AEh6i.4403$zL6.3665@xxxxxxxxxxxxxxxxxxxxxxx
Can anyone help with this:

Biztalk 2004 SP2
Windows XP SP2

I have created 2 schemas (1 for the input message and 1 for the outpt
message). Namespaces are along the lines of http://schema/req and
http://schema/rsp.

I've published these schema files as a web service.

I've created an orchestration with a request/response port receiving and
sending an xml dcoument.

I'm successfully transforming the request on the receive port and my
orchestration does it's thing and returns a message of type xml document
containing the required response (along with the correct response
namespace).

I don't want to transform the response as it's already in the correct
format so I have not specified a map. All appears to be well up to this
point, however, when my web service gets the response back from BTS it is
an empty "type" that is returned i.e. the invokeResponse[0] variable
contains my type but there is no sttructure/data below this. I've tried
this with both xml and passthrough send pipeline with no luck. I've tried
mapping on the send also to no avail. Does anyone know why this is
happening?

Thanks.
Replying to my own question - I've found the problem! I wished I'd posted
this 2 days earlier it would have saved me 2 of the most annoying, most
frustrating days of my life - and this is a bank holiday weekend when I
shouldbe having fun!.

Anyway, the problem was due to the response being returned in my orch:

The failing response was:

<Output
xmlns="http://schemas.uk.experian.com/experian/wbsv/msg/screenless1/v100";><Response><Person><Name>A
B</Name></Person><Address><Formatted>The house
etc.</Formatted></Address></Response></Output>

whilst the one that works is:

<ns0:Output
xmlns:ns0="http://schemas.uk.experian.com/experian/wbsv/msg/screenless1/v100";><Response><Person><Name>A
B</Name></Person><Address><Formatted>The house
etc.</Formatted></Address></Response></ns0:Output>

See the subtle difference? the ns0 prefix. I'd fallen foul of the default
namespace issue. I've read about this all weekend and never realised that
it was affecting me. Anyway, thanks for listening, onto the next problem
:-)

AP


.



Relevant Pages

  • Re: xmlns attribute
    ... I know what a namespace is and how's it used, my question is: ... response is sent back to the client. ... >An XML NameSpace is a virtual way to group together related nodes. ... >XML that your web service creates. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Help consuming third part web services
    ... // The web.config defines the target URL for the web service. ... string xResp = x.AuthenticateUser; ... report the response to the caller. ... I don't think I have a Client Proxy such as is created with WSDL.EXE ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Securing files stored in virtual directory
    ... multiple attachments. ... local file to an attachment, and the web service would receive ... the key as the response from the save step. ... and that exists still in the database. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: SOAP serialization problem
    ... I've snooped the SOAP response, ... this deserialization, but I've not found any that work. ... You're the client and you are the customer of a Web service that's for your use only. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Subscribing to Send Port Response messages
    ... Publishing Wizard' to create a web service (publish schema as a web ... port for me. ... Because there is no subscription created for the ... Because this is a two way port (by definition, as you wish to send a response) you have to find a way to return a response to the 2way receive port created for the web service. ...
    (microsoft.public.biztalk.general)