Hi Greg, this threw me off for a while as well. Basically before you assign
a value into an xml document (a variable in this case), it, as an xml
document must exist. The simplest way to do this in your case would be to
add another "copy" operation in your assign, right before your current one
(can be in the same assign activity). In the eclipse editor, select "Fixed
Value", then type a raw XML document that conforms to your schema type
tns:Test4ResponseMessage.
I don't see that aspect of your WSDL so I can't give you an exact example.
But it would look something like the following in your BPEL (note, the
Eclipse designer add the "literal" element for you). Notice the _two_
"copy" operations, the first one is the one you're missing. Let me know if
this isn't clear.
<bpws:assign>
<bpws:copy>
<bpws:from>
<literal>
<GetQuotes xmlns="http://swanandmokashi.com">
<QuoteTicker/>
</GetQuotes>
</literal>
</bpws:from>
<bpws:to variable="quoteInput" part="parameters"/>
</bpws:copy>
<bpws:copy>
<bpws:from><![CDATA[$input.payload/tns:input]]></bpws:from>
<bpws:to><![CDATA[$quoteInput.parameters/quote:QuoteTicker]]></bpws:to>
</bpws:copy>
</bpws:assign>
Cheers, Rich Taylor
On 8/31/07, Greg Bluntzer <[EMAIL PROTECTED]> wrote:
>
>
> Alex thanks for your help but im still stuck.
>
> Can anyone point me to a good example of initializing variables or tell me
> what to do. I looked through the other post and being new, don't really
> understand Alex's answer. Im using document style binding and am just
> trying to copy the input variable to the output variable.
>
>
> Eclipse BPEL has the following choices on Initializing Variables
> Variable
> Expression
> Fixed Value
> Property of Variable
> Partner Link Reference
> End Point Reference
> Opaque
>
> or am i supposed to use another assign?
>
> My WSDL, BPEL, DEPLOY, SOAP call are on previous post
>
>
> Thanks, Greg
>
>
>
> Alex Boisvert wrote:
> >
> > In your case, the "output" variable (payload part) needs to be
> initialized
> > with a literal element <tns:result> to satisfy the <to> expression.
> >
> > alex
> >
> >
> > On 8/30/07, Alex Boisvert <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi Greg,
> >>
> >> See the (new) FAQ: *My process fails with a selectionFailure; What can
> I
> >> do?*<
> http://cwiki.apache.org/confluence/display/ODExSITE/Frequently+Asked+Questions
> >
> >>
> >> I just added it since similar questions were asked recently.
> >>
> >> alex
> >>
> >>
> >> On 8/30/07, Greg Bluntzer <[EMAIL PROTECTED]> wrote:
> >> >
> >> >
> >> > Thanks for your help now it deploys. But now i have a different
> issue.
> >> I
> >> > changed rpc to document as you suggested.
> >> > Now im getting a new error when i access the webservice. Im using
> >> SoapUI
> >> > to
> >> > create my SOAP Test
> >> >
> >> > Again Thanks for any help
> >> >
> >> > #####ERROR######
> >> > ERROR - GeronimoLog.error(108) | Error processing response for MEX
> >> > {MyRoleMex#hqejbhcnphr2jrxh4xvf4x
> >> > [Client hqejbhcnphr2jrxh4xvf4w] calling
> >> > {Test4}Test4Service.process(...)}
> >> > org.apache.axis2.AxisFault:
> >> >
> >> {
> http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailu<
> http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailu>
> >> > re No results for expression: {OXPath10Expression /tns:result}
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problems-with-ODE-1.1-Release-tf4355659.html#a12427799
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>