Ok. Thank you. I will investigate that.

On 1/29/08, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
>
> Jeff,
>
> Your call operation style should be DOCUMENT.
> You should not specify an encoding style.
>
> Go back to your WSDD and change the "style" value specified there to
> "WRAPPED", then regenerate your WSDL. (Or run java2wsdl and specify
> "wrapped" style there.) Then run wsdl2java to generate a client stub.
> That generated code will show you what the appropriate call parameters
> should be.
>
> The java2wsdl/wsdl2java process works very well with Axis.
>
> Anne
>
>
> On Jan 28, 2008 12:56 PM, Jeff Vandenberg <[EMAIL PROTECTED]>
> wrote:
> > Thank you for the help.
> >
> > I have another small complication now, and am hoping that it's just my
> own
> > oversight on the matter. When I invoke the call, I am getting a null
> return
> > value even though I can see that a value was returned in the
> SOAPMonitor.
> > I've tried playing with various configurations of the call object and
> > haven't had any luck.
> >
> >  String endpoint = "
> http://localhost:8080/axis/services/ServiceTestService";;
> >  Service service = new Service();
> >  Call call = (Call) service.createCall();
> >  call.setTargetEndpointAddress(new java.net.URL(endpoint));
> >  call.setOperationStyle(Style.WRAPPED);
> >  call.setEncodingStyle("http://schemas.xmlsoap.org/soap/encoding/";);
> >  call.setOperationUse(Use.LITERAL);
> >
> >  // get Server Time
> >  call.setOperationName(new QName("urn:ServiceTest",
> "getServerTimestamp"));
> >  call.setReturnType(Constants.XSD_DATETIME);
> >  GregorianCalendar time = (GregorianCalendar) call.invoke(new Object[]
> {});
> >  System.out.println("Server Time: " + time.getTime().toString());
> >
> > What have I either not configured or misconfigured for the call object?
> >
> > Below is the return message from the server in the SOAP Monitor:
> >
> > <?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:Body>
> >  <getServerTimestampReturn
> > xmlns="urn:ServiceTest">2008-01-28T17:34:40.593Z
> </getServerTimestampReturn>
> >  </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> >  Thanks in advance for your time and effort,
> >
> > Jeff Vandenberg
> >
> >
> >
> >
> >
> > On 1/24/08, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > Use wrapped style.
> > >
> > > On Jan 24, 2008 5:09 PM, Jeff Vandenberg <[EMAIL PROTECTED]>
> wrote:
> > > > I'm working on a prototype and am familiar with RPC style and am
> wanting
> > to
> > > > explore document style message handling between the client and
> server. I
> > > > have a very newbie question, how does document style handle
> parameters?
> > I'm
> > > > getting an axis fault that it can't find a matching operation
> > corresponding
> > > > to the parameter name.
> > > >
> > > > I had generated the WSDD from interfaces run through Java2WDL, which
> was
> > > > then processed through WSDL2Java. I have read that Axis doesn't
> handle
> > this
> > > > well.
> > > >
> > > > Is that still the case? Should I be trying wrapped instead right
> now?
> > > >
> > > > Is there a good site or book that helps to explain alot of this with
> > > > examples? I've been doing some googling and have found information
> here
> > and
> > > > there, but rarely much of anything in one consolidated place.
> > > >
> > > > Thanks,
> > > >
> > > > Jeff Vandenberg
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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