axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Meier" <DMe...@SERENA.com>
Subject RE: [AXIS2C] Rest - namespace on the response question
Date Wed, 13 Feb 2008 16:11:08 GMT
Hi Senaka,

Here is what one of the SOAP responses looks like:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <n:UpdateItemResponse xmlns:n="urn:aewebservices70">
      <n:return>
        <n:genericItem>
          <n:itemID>1000:174</n:itemID>
          <n:itemUUID>3801aad2-e3d1-42be-8734-7c3f6d80662d</n:itemUUID>
          <n:itemName>CHG00126</n:itemName>
        </n:genericItem>
        <n:itemType>Change Request</n:itemType>
        <!-- I left out the rest of the response as it is too long for
this email -->
      </n:return>
    </n:UpdateItemResponse>
  </soapenv:Body>
</soapenv:Envelope>

-Dave. 

-----Original Message-----
From: Senaka Fernando [mailto:senaka@wso2.com] 
Sent: Tuesday, February 12, 2008 11:33 PM
To: Apache AXIS C Developers List
Subject: Re: [AXIS2C] Rest - namespace on the response question

Hi Dave,

Jolly good question. I think this may be a bug. Also, I would like to
see the response you got for your SOAP call, if it is possible.

Regards,
Senaka

> Hi All,
>
> I am now using REST successfully for both GET and POST calls!  Thanks 
> for all the help getting this going.
>
> I have a question about the response.  The nodes all have a prefix of 
> "n" but no namespace is defined for "n".  Shouldn't it set a valid 
> namespace for "n" that matches my services namespace?  I tried to set 
> it myself on the return node but it didn't seem to work - I think I 
> may be doing it wrong.
>
> I call the same code that I use for the SOAP calls except I pass in 
> the itemid and userid rather than it pulling that from my request
node.
>
> For example:
>
> http://localhost:9090/axis2/services/aewebservices70/GetItem/1000:42?u
> se rid=joe is the URL I type into the browser.
>
> And here is the response:
>
> <n:GetItemResponse>
>   <n:return>
>     <n:genericItem>
>       <n:itemID>1000:42</n:itemID>
>       <n:itemUUID>eb2b1ea0-8343-41d5-bde7-b19601d333f3</n:itemUUID>
>       <n:itemName>TSK00025</n:itemName>
>     </n:genericItem>
>     <n:itemType>Task</n:itemType>
>     <!-- I left out the rest of the response as it is too long for 
> this email -->
>   </n:return>
> </n:GetItemResponse>
>
> Thanks,
>
> -Dave.
>
> **********************************************************************
> This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom they
are addressed.
> Any unauthorized review, use, disclosure or distribution is 
> prohibited. If you are not the intended recipient, please contact the 
> sender by reply e-mail and destroy all copies of the original message.
> **********************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message