Sorry Dan, I copied the wrong part of the wsdl, it should have been:

<xsd:schema elementFormDefault="qualified"
targetNamespace="http://basic.org/test";>
                        <xsd:element name="CreateFromEprOperation">
                                <xsd:complexType>
                                        <xsd:sequence>
                                                <xsd:element
ref="wsa:EndpointReference" />
                                        </xsd:sequence>
                                </xsd:complexType>
                        </xsd:element>
                        <xsd:element
name="CreateFromEprOperationResponse">
                                <xsd:complexType>
                                        <xsd:sequence>
                                                <xsd:element
ref="wsa:EndpointReference" />
                                        </xsd:sequence>
                                </xsd:complexType>
                        </xsd:element>
                </xsd:schema>

Guess that's what one gets for naming functions with too similar names
:)

-----Original Message-----
From: Daniel Jemiolo [mailto:[EMAIL PROTECTED] 
Sent: 08 March 2007 15:51
To: [email protected]
Subject: Re: proxy and invoke

hmmm... this looks similar to a bug I fixed last month[1]. I will try
this 
on the RC build and get back to you.

Dan

[1] http://issues.apache.org/jira/browse/MUSE-202


<[EMAIL PROTECTED]> wrote on 03/08/2007 09:24:42 AM:

> Hi guys
> 
> I'm trying to utilize the proxy to send an EndpointReference parameter
> to the service and have edited my wsdl to have a wsa:endpointReference
> parameter.
> But for some reason the generated code always ends up with a Element
> param, and even when looking to Daniel Jemiolo email from 15. December
> 2006 about using:
> 
> import org.apache.muse.ws.addressing.EndpointReference;
> 
> ...
> 
> public void myOperation(EndpointReference epr) {
>         Object[] params = new Object[1];
>         params[0] = epr;
> 
>         ProxyHandler handler = getHandler("myOperation");
>         invoke(handler, params);
> }
> 
> My Epr ends up all malformed.
> 
> The declaration in the wsdl:
> 
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://basic.org/test";>
>          <xsd:element name="CreateWithEprOperation">
>             <xsd:complexType>
>                <xsd:sequence>
>                   <xsd:element
> name="ResourceID" type="xsd:string" />
>                   <xsd:element
> name="ResourceType" type="xsd:string" />
>                </xsd:sequence>
>             </xsd:complexType>
>          </xsd:element>
>          <xsd:element
> name="CreateWithEprOperationResponse">
>             <xsd:complexType>
>                <xsd:sequence>
>                   <xsd:element
> ref="wsa:EndpointReference" />
>                </xsd:sequence>
>             </xsd:complexType>
>          </xsd:element>
>       </xsd:schema>
> 
> My Epr within the proxy function before the invoke function:
> 
> <wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing";>
> 
>
<wsa:Address>http://localhost:1234/WS-Basic/services/WsBasic</wsa:Addres
> s>
>     <wsa:ReferenceParameters>
>         <muse-wsa:ResourceId
>
xmlns:muse-wsa="http://ws.apache.org/muse/addressing";>test0r1</muse-wsa:
> ResourceId>
>     </wsa:ReferenceParameters>
> </wsa:EndpointReference>
> 
> 
> Soap traces during runtime:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> 
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
>     <soap:Header>
>         <wsa:To
>
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://localhost:1234/W
> S-Basic/services/WsBasic</wsa:To>
>         <wsa:Action
>
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://basic.org/test/C
> reateFromEprOperation</wsa:Action>
>         <wsa:MessageID
>
xmlns:wsa="http://www.w3.org/2005/08/addressing";>uuid:b44093a2-fb8a-3abd
> -4cf3-ac268202ac26</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
> 
>
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Ad
> dress>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:CreateFromEprOperation
xmlns:pfx0="http://basic.org/test";>
>             <pfx1:EndpointReference
> xmlns:pfx1="http://www.w3.org/2005/08/addressing";>
>                 <wsa:ReferenceParameters
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>                     <muse-wsa:ResourceId
>
xmlns:muse-wsa="http://ws.apache.org/muse/addressing";>test0r1</muse-wsa:
> ResourceId>
>                 </wsa:ReferenceParameters>
>             </pfx1:EndpointReference>
>         </pfx0:CreateFromEprOperation>
>     </soap:Body>
> </soap:Envelope>
> 
> [CLIENT TRACE] SOAP envelope contents (incoming):
> 
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
>     <soap:Header>
>         <wsa:To
>
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/
> 08/addressing/role/anonymous</wsa:To>
>         <wsa:Action
>
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/
> 08/addressing/fault</wsa:Action>
>         <wsa:MessageID
>
xmlns:wsa="http://www.w3.org/2005/08/addressing";>uuid:c91d1b6a-bbf7-4e1b
> -0501-5c3a2650ea23</wsa:MessageID>
>         <wsa:RelatesTo RelationshipType="wsa:Reply"
>
xmlns:wsa="http://www.w3.org/2005/08/addressing";>uuid:b44093a2-fb8a-3abd
> -4cf3-ac268202ac26</wsa:RelatesTo>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
> 
>
<wsa:Address>http://localhost:1234/WS-Basic/services/WsBasic</wsa:Addres
> s>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <soap:Fault>
>             <soap:Code>
>                 <soap:Value>soap:Receiver</soap:Value>
>             </soap:Code>
>             <soap:Reason>
>                 <soap:Text/>
>             </soap:Reason>
>         </soap:Fault>
>     </soap:Body>
> </soap:Envelope>
> 
> /Lenni
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to