You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Anne Thomas Manes <at...@gmail.com> on 2007/04/04 18:02:01 UTC

Re: AXIS2 - ADB and multiref?

Multiref is not supported in document/literal messages. (The multirefs
would not conform to the literal schema unless the schema explicitly
defines the use of multirefs.)

In order to use multirefs, you must use RPC/encoded. Axis2 does not
support RPC/encoded. Try Axis 1.x.

Anne


On 4/4/07, Patrick Houbaux <pa...@eurostep.com> wrote:
>
>  Hi all,
>
>  I'm currently using axis2-1.2-RC2 and I notice the same following things
> with axis2-1.1.1.
>
>  I have a wsdl from which I'm generating the server side skeleton and the
> client side stub using ADB.
>  In the service definition I have a method that returns the following when
> invoked:
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>      <soapenv:Body>
>          <ns3:getPLMObjectOut xmlns:ns3="http://www.plcs.org/Message">
>              <ns3:items
> xmlns:s21="http://www.plcs.org/PLMServices/Types"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="s21:Part">
>                  <s21:id>X001</s21:id>
>                  <s21:name>Part1</s21:name>
>                  <s21:description>Part #1</s21:description>
>              </ns3:items>
>              <ns3:items
> xmlns:s22="http://www.plcs.org/PLMServices/Types"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="s22:Product_as_individual">
>                  <s22:id>X002</s22:id>
>                  <s22:name>PAI1</s22:name>
>                  <s22:description>PAI #1</s22:description>
>              </ns3:items>
>              <ns3:items
> xmlns:s23="http://www.plcs.org/PLMServices/Types"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="s23:Part_version">
>                  <s23:id>X003</s23:id>
>                  <s23:description>PARTV #1</s23:description>
>                  <s23:of_product xsi:type="s23:Part">
>                      <s23:id>X001</s23:id>
>                      <s23:name>Part1</s23:name>
>                      <s23:description>Part #1</s23:description>
>                  </s23:of_product>
>              </ns3:items>
>              <ns3:items
> xmlns:s24="http://www.plcs.org/PLMServices/Types"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="s24:Product_as_planned">
>                  <s24:id>X005</s24:id>
>                  <s24:description>PAP #1</s24:description>
>                  <s24:of_product
> xsi:type="s24:Product_as_individual">
>                      <s24:id>X002</s24:id>
>                      <s24:name>PAI1</s24:name>
>                      <s24:description>PAI #1</s24:description>
>                  </s24:of_product>
>              </ns3:items>
>              <ns3:items
> xmlns:s25="http://www.plcs.org/PLMServices/Types"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="s25:Product_as_realized">
>                  <s25:id>X006</s25:id>
>                  <s25:description>PAR #1</s25:description>
>                  <s25:of_product
> xsi:type="s25:Product_as_individual">
>                      <s25:id>X002</s25:id>
>                      <s25:name>PAI1</s25:name>
>                      <s25:description>PAI #1</s25:description>
>                  </s25:of_product>
>              </ns3:items>
>          </ns3:getPLMObjectOut>
>      </soapenv:Body>
>  </soapenv:Envelope>
>
>  According to my server business logic implementation all elements
> <sXX:of_product
> xsi:type="sYY:Product_as_individual">..</sXX:of_product>
> should be pointing to the same instance of the type "Product_as_individual".
>
>  How do I force the server to return multiref messages (assuming that this
> is going to respond a shorter message with all the of_product elements
> referring to only instance of "Product_as_individual")?
>
>  Cheers,
>  Patrick.
>
>
>
> --
>
>
> ------------------------------------------------------------------
>  | Patrick Houbaux
>  | Senior Consultant
>  | Eurostep AB            Email: patrick.houbaux@eurostep.com
>  | Drottninggatan 68      Mobile: +33 611 192 943
>  | SE-111 21 Stockholm    Fax: +46 (0) 8-200 399
>  | Sweden                 URL: http://www.eurostep.com
>  |                        Skype name: phoubaux
>  | Home address:
>  | BAT A11
>  | 12 Rue de Paris
>  | F-78560 Le Port-Marly
>  | France
> -------------------------------------------------------------------
>
>
> This message contains information that may be privileged or confidential and
> is the property of Eurostep Group. It is intended only for the person to
> whom it is addressed. If you are not the intended recipient, you are not
> authorized to read, print, retain, copy, disseminate, distribute, or use
> this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org

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


Re: AXIS2 - ADB and multiref?

Posted by Anne Thomas Manes <at...@gmail.com>.
On 4/4/07, Patrick Houbaux <pa...@eurostep.com> wrote:
>
>  Thanks Anne! That makes sense.
>
>  I moved to AXIS2 because I had some other issues with AXIS1.x.
>  The WSDL I have is document/literal anyway.
>
>  Any idea when AXIS2 will support RPC/encoded?

Never.

>
>  Patrick.
>
>  Anne Thomas Manes wrote:
> Multiref is not supported in document/literal messages. (The multirefs
>  would not conform to the literal schema unless the schema explicitly
>  defines the use of multirefs.)
>
>  In order to use multirefs, you must use RPC/encoded. Axis2 does not
>  support RPC/encoded. Try Axis 1.x.
>
>  Anne
>
>
>  On 4/4/07, Patrick Houbaux <pa...@eurostep.com> wrote:
>
>
>   Hi all,
>
>   I'm currently using axis2-1.2-RC2 and I notice the same following things
>  with axis2-1.1.1.
>
>   I have a wsdl from which I'm generating the server side skeleton and the
>  client side stub using ADB.
>   In the service definition I have a method that returns the following when
>  invoked:
>
>   <?xml version="1.0" encoding="UTF-8"?>
>   <soapenv:Envelope
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>       <soapenv:Body>
>           <ns3:getPLMObjectOut xmlns:ns3="http://www.plcs.org/Message">
>               <ns3:items
>  xmlns:s21="http://www.plcs.org/PLMServices/Types"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:type="s21:Part">
>                   <s21:id>X001</s21:id>
>                   <s21:name>Part1</s21:name>
>                   <s21:description>Part #1</s21:description>
>               </ns3:items>
>               <ns3:items
>  xmlns:s22="http://www.plcs.org/PLMServices/Types"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:type="s22:Product_as_individual">
>                   <s22:id>X002</s22:id>
>                   <s22:name>PAI1</s22:name>
>                   <s22:description>PAI #1</s22:description>
>               </ns3:items>
>               <ns3:items
>  xmlns:s23="http://www.plcs.org/PLMServices/Types"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:type="s23:Part_version">
>                   <s23:id>X003</s23:id>
>                   <s23:description>PARTV #1</s23:description>
>                   <s23:of_product xsi:type="s23:Part">
>                       <s23:id>X001</s23:id>
>                       <s23:name>Part1</s23:name>
>                       <s23:description>Part #1</s23:description>
>                   </s23:of_product>
>               </ns3:items>
>               <ns3:items
>  xmlns:s24="http://www.plcs.org/PLMServices/Types"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:type="s24:Product_as_planned">
>                   <s24:id>X005</s24:id>
>                   <s24:description>PAP #1</s24:description>
>                   <s24:of_product
>  xsi:type="s24:Product_as_individual">
>                       <s24:id>X002</s24:id>
>                       <s24:name>PAI1</s24:name>
>                       <s24:description>PAI #1</s24:description>
>                   </s24:of_product>
>               </ns3:items>
>               <ns3:items
>  xmlns:s25="http://www.plcs.org/PLMServices/Types"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:type="s25:Product_as_realized">
>                   <s25:id>X006</s25:id>
>                   <s25:description>PAR #1</s25:description>
>                   <s25:of_product
>  xsi:type="s25:Product_as_individual">
>                       <s25:id>X002</s25:id>
>                       <s25:name>PAI1</s25:name>
>                       <s25:description>PAI #1</s25:description>
>                   </s25:of_product>
>               </ns3:items>
>           </ns3:getPLMObjectOut>
>       </soapenv:Body>
>   </soapenv:Envelope>
>
>   According to my server business logic implementation all elements
>  <sXX:of_product
> xsi:type="sYY:Product_as_individual">..</sXX:of_product>
>  should be pointing to the same instance of the type
> "Product_as_individual".
>
>   How do I force the server to return multiref messages (assuming that this
>  is going to respond a shorter message with all the of_product elements
>  referring to only instance of "Product_as_individual")?
>
>   Cheers,
>   Patrick.
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
> --
>
>
> ------------------------------------------------------------------
>  | Patrick Houbaux
>  | Senior Consultant
>  | Eurostep AB            Email: patrick.houbaux@eurostep.com
>  | Drottninggatan 68      Mobile: +33 611 192 943
>  | SE-111 21 Stockholm    Fax: +46 (0) 8-200 399
>  | Sweden                 URL: http://www.eurostep.com
>  |                        Skype name: phoubaux
>  | Home address:
>  | BAT A11
>  | 12 Rue de Paris
>  | F-78560 Le Port-Marly
>  | France
> -------------------------------------------------------------------
>
>
>
> This message contains information that may be privileged or confidential and
> is the property of Eurostep Group. It is intended only for the person to
> whom it is addressed. If you are not the intended recipient, you are not
> authorized to read, print, retain, copy, disseminate, distribute, or use
> this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org

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