Thanks for letting us know! And I'm glad you got it working

Paul

On Dec 13, 2007 8:44 PM, David Purcell <[EMAIL PROTECTED]> wrote:

> Thanks Paul, Asankha and everyone.  I got it to work.
>
> Here's the deal for those who might stumble across it.
>
> I was trying out Spring web services for the first time (shouldn't try two
> new things at once).  As pointed out below, the SOAPAction header is
> expected.  Apparently there is a Spring web service defect that doesn't set
> this at all (even to an empty value).
>
> See
> http://forum.springframework.org/showthread.php?t=44694
>
> The Spring reference documentation says to put a WebServiceMessageCallback
> when sending, as such:
>    webServiceTemplate.marshalSendAndReceive(o, new
> WebServiceMessageCallback() {
>
>        public void doInMessage(WebServiceMessage message) {
>            ((SoapMessage)message).setSoapAction("http://tempuri.org/Action
> ");
>        }
>    });
>
> But that didn't work for me.  But this did.
>
> Object response = webServiceTemplate.marshalSendAndReceive("
> http://someurl/somepath/";, requestDoc,
>                        new SoapActionCallback("http://someurl/somepath/";)
>                );
>
> - David
>
> ===============================
> David Purcell
> Systems Architect
> MN State Colleges and Universities
> [EMAIL PROTECTED]
> ==============================+
>
>
> >>> "Asankha C. Perera" <[EMAIL PROTECTED]> 12/13/2007 12:09 PM >>>
> David
>
> Can you send the WSDL of your service as well (i.e. the one you specify
> when you create the proxy). SOAP 1.1 expects the SOAPAction header, and
> your client does not send it, and Synapse is unable to find the operation
>
> asankha
>
> David Purcell wrote:
> > Hi,
> >
> > Here is a sample soap request.  Works without the proxy, but when sent
> through the proxy, it doesn't like it.
> >
> > Thanks for any help.
> >
> > - David
> >
> > POST /soap/HolidayProxy/ HTTP/1.1
> > Accept-Encoding: gzip
> > Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> > Content-Type: text/xml; charset=utf-8
> > Content-Length: 447
> > Cache-Control: no-cache
> > Pragma: no-cache
> > User-Agent: Java/1.5.0_11
> > Host: 127.0.0.1:8050
> > Connection: keep-alive
> >
> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Header/><SOAP-ENV:Body><sch:Holiday2Request
> xmlns:sch="http://mycompany.com/hr/schemas
> "><sch:Employee><sch:FirstName>David</sch:FirstName><sch:LastName>XXX</sch:LastName></sch:Employee><sch:Holiday><sch:StartDate>2006-01-31</sch:StartDate><sch:EndDate>2006-01-31-06:00</sch:EndDate></sch:Holiday></sch:Holiday2Request></SOAP-ENV:Body></SOAP-ENV:Envelope>
> >
> > ===============================
> > David Purcell
> > Systems Architect
> > MN State Colleges and Universities
> > [EMAIL PROTECTED]
> > ==============================+
> >
> >
> >
> >>>> "Asankha C. Perera" <[EMAIL PROTECTED]> 12/13/2007 7:21 AM >>>
> >>>>
> > David
> >
> > Can you post a sample request you send to the proxy? You can use TCPMon
> > to capture this by forwarding it through a different port.
> >
> > asankha
> >
> > David Purcell wrote:
> >
> >> Hi,
> >>
> >> I'm trying to recreate the simple proxy example.  I can get the sample
> 150 to work fine (the simple one from the quick start example), and I have
> created my own SOAP client and server that works fine (using Spring web
> services, not AXIS, however).  But when I try to set up my own proxy like
> the example 150, and have my client call the proxy instead, I get this
> message:
> >>
> >> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> Operation not found is /soap/HolidayProxy/ and the WSA Action = null
> >>
> >> Has anyone run into this situation?
> >>
> >> Thanks in advance,
> >>
> >> David
> >>
> >>
> >>
> >> ===============================
> >> David Purcell
> >> Systems Architect
> >> MN State Colleges and Universities
> >> [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]
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

Reply via email to