axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miha Vitorovic <mvitoro...@nil.si>
Subject Re: Send "raw" message
Date Mon, 13 Jul 2009 18:29:28 GMT
Thanks for the OMElement  pointer, I'll check it out. As for the 
validator, I'm pretty new at this, and don't know much about it. Just 
point me in the direction of a few documents, and I'll make use of it ;)

Br, 
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si



From:
Andreas Veithen <andreas.veithen@gmail.com>
To:
axis-user@ws.apache.org
Date:
13.07.2009 15:43
Subject:
Re: Send "raw" message



If you are using Axis2, you can use ServiceClient to send XML (as an
OMElement). BTW, did you check the messages with a schema validator to
see which one is right?

Andreas

2009/7/13 Miha Vitorovic <mvitorovic@nil.si>:
>
> Hi all,
>
> While I understand that the point of AXIS is to remove the need for
> generating raw XML, I would still like to know if it is possible to do
> something similar to that.
>
> Why? Well, my deadline is approaching, and if I don't solve the problems 
I'm
> facing, I'd like to use the option as a workaround.
>
> And now the problem: I'm integrating our in-house system with MS 
Dynamics
> CRM 4.0, and it's giving problems that I am unable to solve with my 
limited
> knowledge of WSDL and WebSevices. I have two messages. They both look 
the
> same (well not THE SAME, but equivalent) to me, but the server 
disagrees.
>
> The one that is not working (generated by axis code):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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:Header>
>     <CrmAuthenticationToken
> soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
> soapenv:mustUnderstand="0"
> xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
>       <AuthenticationType
> xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes
">0</AuthenticationType>
>       <OrganizationName
> xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes
">Test</OrganizationName>
>       <CallerId
> xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes
">00000000-0000-0000-0000-000000000000</CallerId>
>     </CrmAuthenticationToken>
>   </soapenv:Header>
>   <soapenv:Body>
>     <Execute xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
>       <Request xsi:type="ns1:CancelSalesOrderRequest"
> xmlns:ns1="http://schemas.microsoft.com/crm/2007/WebServices">
>         <ns1:OptionalParameters xsi:type="ns1:OptionalParameter"/>
>         <ns1:OrderClose xsi:type="ns1:orderclose">
>           <ns1:salesorderid name="salesorder" dsc="0" IsNull="false"
> xsi:type="ns2:Lookup"
> xmlns:ns2="http://schemas.microsoft.com/crm/2006/WebServices
">6dad4393-a06f-de11-bac1-007276884dce</ns1:salesorderid>
>         </ns1:OrderClose>
>         <ns1:Status xsi:type="xsd:int">-1</ns1:Status>
>       </Request>
>     </Execute>
>   </soapenv:Body>
> </soapenv:Envelope>
>
> The working one:
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <soap:Header>
>     <CrmAuthenticationToken
> xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
>       <AuthenticationType
> xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes
">0</AuthenticationType>
>       <OrganizationName
> xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes
">Test</OrganizationName>
>       <CallerId
> xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes
">00000000-0000-0000-0000-000000000000</CallerId>
>     </CrmAuthenticationToken>
>   </soap:Header>
>   <soap:Body>
>     <Execute xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
>       <Request xsi:type="CancelSalesOrderRequest">
>         <OrderClose xsi:type="orderclose">
>           <salesorderid
> name="salesorder">6dad4393-a06f-de11-bac1-007276884dce</salesorderid>
>         </OrderClose>
>         <Status>-1</Status>
>       </Request>
>     </Execute>
>   </soap:Body>
> </soap:Envelope>
>
> So, can anyone help, either by making the generated request work (point 
out
> what seems to be the problem), or by telling me how to use the framework 
to
> send an XML generated by hand?
>
> Thanks in advance and best regards,
> ---
>  Miha Vitorovic
>  Inženir v tehničnem področju
>  Customer Support Engineer
>
>   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana, 
 Slovenia
>   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si


Mime
View raw message