Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 38219 invoked from network); 13 Jul 2009 18:29:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jul 2009 18:29:57 -0000 Received: (qmail 18400 invoked by uid 500); 13 Jul 2009 18:30:03 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 18083 invoked by uid 500); 13 Jul 2009 18:30:03 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 17974 invoked by uid 99); 13 Jul 2009 18:30:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 18:30:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.110.145.41] (HELO ironport1.nil.si) (193.110.145.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 18:29:50 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAAcaW0rBTQNg/2dsb2JhbACCJi6VOLgeAoQHBYE9 X-IronPort-AV: E=Sophos;i="4.42,391,1243807200"; d="scan'208";a="3588665" In-Reply-To: References: To: axis-user@ws.apache.org MIME-Version: 1.0 Subject: Re: Send "raw" message X-KeepSent: 65A9D1B7:A9FF1D01-C12575F2:00652912; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.2 August 07, 2008 Message-ID: From: Miha Vitorovic Date: Mon, 13 Jul 2009 20:29:28 +0200 X-MIMETrack: Serialize by Router on Myopia/Nil(Release 8.0.2FP1|January 12, 2009) at 13.07.2009 20:29:28, Serialize complete at 13.07.2009 20:29:28 Content-Type: multipart/alternative; boundary="=_alternative 0065938AC12575F2_=" X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. --=_alternative 0065938AC12575F2_= Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: quoted-printable Thanks for the OMElement pointer, I'll check it out. As for the=20 validator, I'm pretty new at this, and don't know much about it. Just=20 point me in the direction of a few documents, and I'll make use of it ;) Br,=20 --- Miha Vitorovic In=BEenir v tehni=E8nem podro=E8ju 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 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 : > > 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=20 Dynamics > CRM 4.0, and it's giving problems that I am unable to solve with my=20 limited > knowledge of WSDL and WebSevices. I have two messages. They both look=20 the > same (well not THE SAME, but equivalent) to me, but the server=20 disagrees. > > The one that is not working (generated by axis code): > > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > soapenv:actor=3D"http://schemas.xmlsoap.org/soap/actor/next" > soapenv:mustUnderstand=3D"0" > xmlns=3D"http://schemas.microsoft.com/crm/2007/WebServices"> > xmlns=3D"http://schemas.microsoft.com/crm/2007/CoreTypes ">0 > xmlns=3D"http://schemas.microsoft.com/crm/2007/CoreTypes ">Test > xmlns=3D"http://schemas.microsoft.com/crm/2007/CoreTypes ">00000000-0000-0000-0000-000000000000 > > > > > xmlns:ns1=3D"http://schemas.microsoft.com/crm/2007/WebServices"> > > > xsi:type=3D"ns2:Lookup" > xmlns:ns2=3D"http://schemas.microsoft.com/crm/2006/WebServices ">6dad4393-a06f-de11-bac1-007276884dce > > -1 > > > > > > The working one: > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"> > > xmlns=3D"http://schemas.microsoft.com/crm/2007/WebServices"> > xmlns=3D"http://schemas.microsoft.com/crm/2007/CoreTypes ">0 > xmlns=3D"http://schemas.microsoft.com/crm/2007/CoreTypes ">Test > xmlns=3D"http://schemas.microsoft.com/crm/2007/CoreTypes ">00000000-0000-0000-0000-000000000000 > > > > > > > name=3D"salesorder">6dad4393-a06f-de11-bac1-007276884dce > > -1 > > > > > > So, can anyone help, either by making the generated request work (point=20 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=BEenir v tehni=E8nem podro=E8ju > Customer Support Engineer > > NIL Data Communications, Tivolska cesta 48, 1000 Ljubljana,=20 Slovenia > Phone +386 1 4746 500 Fax +386 1 4746 501 http://www.NIL.si --=_alternative 0065938AC12575F2_= Content-Type: text/html; charset="ISO-8859-2" Content-Transfer-Encoding: quoted-printable
Thanks for the OMElement  point= er, 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=BEenir v tehni=E8nem podro=E8ju
 Customer Support Engineer

  NIL Data Communications,  Tivolska cesta 48,  1000 Ljublj= ana,  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 proble= ms 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 Dynam= ics
> 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 disagre= es.
>
> The one that is not working (generated by axis code):
>
> <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <soapenv:Envelope xmlns:soapenv=3D"
http://schemas.xmls= oap.org/soap/envelope/"
> xmlns:xsd=3D"
http://www.w3.org/2001/XMLSchema<= font size=3D2>"
> xmlns:xsi=3D"
http://www.w3.org/2001/XMLSchema-instance<= /font>">
>   <soapenv:Header>
>     <CrmAuthenticationToken
> soapenv:actor=3D"
http://schemas.xmlsoap.org/soap/actor/n= ext"
> soapenv:mustUnderstand=3D"0"
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/We= bServices">
>       <AuthenticationType
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/Core= Types">0</AuthenticationType&= gt;
>       <OrganizationName
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/Core= Types">Test</OrganizationName= >
>       <CallerId
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/Core= Types">00000000-0000-0000-0000-0= 00000000000</CallerId>
>     </CrmAuthenticationToken>
>   </soapenv:Header>
>   <soapenv:Body>
>     <Execute xmlns=3D"
http://schemas= .microsoft.com/crm/2007/WebServices"= ;>
>       <Request xsi:type=3D"ns1:CancelSalesOrder= Request"
> xmlns:ns1=3D"
http://schemas.microsoft.com/crm/200= 7/WebServices">
>         <ns1:OptionalParameters xsi:type=3D&quo= t;ns1:OptionalParameter"/>
>         <ns1:OrderClose xsi:type=3D"ns1:or= derclose">
>           <ns1:salesorderid name=3D"s= alesorder" dsc=3D"0" IsNull=3D"false"
> xsi:type=3D"ns2:Lookup"
> xmlns:ns2=3D"
http://schemas.microsoft.com/crm/200= 6/WebServices">6dad4393-a06f-de1= 1-bac1-007276884dce</ns1:salesorderid>
>         </ns1:OrderClose>
>         <ns1:Status xsi:type=3D"xsd:int&qu= ot;>-1</ns1:Status>
>       </Request>
>     </Execute>
>   </soapenv:Body>
> </soapenv:Envelope>
>
> The working one:
> <?xml version=3D"1.0" encoding=3D"utf-8"?> > <soap:Envelope xmlns:soap=3D"
http://schemas.xmlsoap.or= g/soap/envelope/"
> xmlns:xsi=3D"
http://www.w3.org/2001/XMLSchema-instance<= /font>"
> xmlns:xsd=3D"
http://www.w3.org/2001/XMLSchema<= font size=3D2>">
>   <soap:Header>
>     <CrmAuthenticationToken
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/We= bServices">
>       <AuthenticationType
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/Core= Types">0</AuthenticationType&= gt;
>       <OrganizationName
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/Core= Types">Test</OrganizationName= >
>       <CallerId
> xmlns=3D"
http://schemas.microsoft.com/crm/2007/Core= Types">00000000-0000-0000-0000-0= 00000000000</CallerId>
>     </CrmAuthenticationToken>
>   </soap:Header>
>   <soap:Body>
>     <Execute xmlns=3D"
http://schemas= .microsoft.com/crm/2007/WebServices"= ;>
>       <Request xsi:type=3D"CancelSalesOrderRequ= est">
>         <OrderClose xsi:type=3D"orderclose= ">
>           <salesorderid
> name=3D"salesorder">6dad4393-a06f-de11-bac1-007276884dce&= lt;/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 framewo= rk to
> send an XML generated by hand?
>
> Thanks in advance and best regards,
> ---
>  Miha Vitorovic
>  In=BEenir v tehni=E8nem podro=E8ju
>  Customer Support Engineer
>
>   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
>   Phone +386 1 4746 500      Fax +386 1 4746 501    
h= ttp://www.NIL.si

--=_alternative 0065938AC12575F2_=--