The Artima Developer Community
Sponsored Link

Web Services Forum
Missing namespace in response

1 reply on 1 page. Most recent reply: May 29, 2006 4:12 AM by Per Bondesson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Per Bondesson

Posts: 2
Nickname: pelle
Registered: May, 2006

Missing namespace in response Posted: May 29, 2006 4:05 AM
Reply to this message Reply
Advertisement
This is a simple example with a method that has a return value from a different namespace than the method.


The SOAP message request:
<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://main.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<q0:printGreeting />
</soapenv:Body>
</soapenv:Envelope>


The SOAP message response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<printGreetingResponse xmlns="http://main.com">
<printGreetingReturn>
<greeting>Heffak lump!</greeting>
</printGreetingReturn>
</printGreetingResponse& gt;
</soapenv:Body>
</soapenv:Envelope>

The namespace is missing in greeting!


The WSDL file looks like this:
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://main.com" elementFormDefault="qualified">
<import namespace="http://hej.com"/>
<element name="printGreeting">
<complexType/>
</element>
<element name="printGreetingResponse">
<complexType>
<sequence>
<eleme nt name="printGreetingReturn" type="tns1:Greeting"/>
</sequence>
</complexType>
</element&g t;
<element name="getGreeting">
<complexType/>
</element>
<element name="getGreetingResponse">
<complexType>
<sequence>
<element name="getGreetingReturn" type="tns1:Greeting"/>
</sequence>
</complexType>
</element&g t;
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://hej.com" elementFormDefault="qualified">
<complexType name="Greeting">
<sequence>
<element name="greeting" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
& lt;/wsdl:types>


Why is the namespace missing in the response?


Per Bondesson

Posts: 2
Nickname: pelle
Registered: May, 2006

Re: Missing namespace in response Posted: May 29, 2006 4:12 AM
Reply to this message Reply
Sorry, I forgot. I've used Axis 1.3 and 1.4 with the same result.

Flat View: This topic has 1 reply on 1 page
Topic: [BPEL]Setting local variable from java Previous Topic   Next Topic Topic: Problem in log4j.xml

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use