Problem with WSIF service invcation
"Oliver Schneider" <[email protected]> Mon, 14 Dec 2009 12:44:09 +0100 (MET)
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
--b_01_12a79d8ea1ce46987244639dc604b4fc
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE"><HTML><HEAD><=
META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">=
<TITLE>Message</TITLE></HEAD><BODY>
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" height=3D"100%" wid=
th=3D"100%">
<tbody><tr><form name=3D"msg_view"></form>
<input name=3D"msgNo" value=3D"158" type=3D"hidden">
<td class=3D"BC0C0C0"><img src=3D"https://communicator.strato.de/01_str=
ato_files/images_strato/de/dummy.gif" border=3D"0" height=3D"1" width=3D"1"=
></td>
<td valign=3D"top" width=3D"100%">
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%=
">
<tbody><tr>
<td width=3D"12"><img src=3D"https://communicator.strato.de/01_st=
rato_files/images_strato/de/dummy.gif" border=3D"0" height=3D"1" width=3D"1=
2"></td>
<td width=3D"100%"><auto_cleaned_doctype_tag><auto_cleaned_html_t=
ag><auto_cleaned_head_tag><auto_cleaned_meta_tag><auto_cleaned_title_tag><a=
uto_cleaned_head_tag><auto_cleaned_body_tag>Hello everybody,<br>
<br>
I need some urgent help concerning the following problem:<br>
<br>
I wrote a custom Web service using WSIF which I would like to invoke
from my BPEL process, pass along as input a string and want to return
as output a complex type message.<br>
I try to set the content of the complex type from within the Java class tha=
t is called by the WSIF interface operation.<br>
<br>
My WSDL looks as follows:<br>
<br><?xml version=3D"1.0" encoding=3D"utf-8" ?> <br><wsdl:definiti=
ons xmlns:pub=3D"<a class=3D"linkification-ext" href=3D"http://xmlns.oracle=
.com/Application2/podl_soa/podl_soa_bpel/publication" title=3D"Linkificatio=
n: http://xmlns.oracle.com/Application2/podl_soa/podl_soa_bpel/publication"=
>http://xmlns.oracle.com/Application2/podl_soa/podl_soa_bpel/publication</a=
>"<br> targetNamespace=3D"<a class=3D"linkification-ext" href=3D"http=
://xmlns.oracle.com/Application2/podl_soa/podl_soa_bpel/publication" title=
=3D"Linkification: http://xmlns.oracle.com/Application2/podl_soa/podl_soa_b=
pel/publication">http://xmlns.oracle.com/Application2/podl_soa/podl_soa_bpe=
l/publication</a>"<br> xmlns:wsdl=3D"<a class=3D"linkification-ext" h=
ref=3D"http://schemas.xmlsoap.org/wsdl/" title=3D"Linkification: http://sch=
emas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>" xmlns:xs=3D"<=
a class=3D"linkification-ext" href=3D"http://www.w3.org/2001/XMLSchema" tit=
le=3D"Linkification: http://www.w3.org/2001/XMLSchema">http://www.w3.org/20=
01/XMLSchema</a>"<br> xmlns:plnk=3D"<a class=3D"linkification-ext" hr=
ef=3D"http://schemas.xmlsoap.org/ws/2003/05/partner-link/" title=3D"Linkifi=
cation: http://schemas.xmlsoap.org/ws/2003/05/partner-link/">http://schemas=
.xmlsoap.org/ws/2003/05/partner-link/</a>"<br> xmlns:format=3D"<a cla=
ss=3D"linkification-ext" href=3D"http://schemas.xmlsoap.org/wsdl/formatbind=
ing/" title=3D"Linkification: http://schemas.xmlsoap.org/wsdl/formatbinding=
/">http://schemas.xmlsoap.org/wsdl/formatbinding/</a>"<br> xmlns:main=
=3D"<a class=3D"linkification-ext" href=3D"http://xmlns.oracle.com/Applicat=
ion2/podl_soa/podl_soa_bpel" title=3D"Linkification: http://xmlns.oracle.co=
m/Application2/podl_soa/podl_soa_bpel">http://xmlns.oracle.com/Application2=
/podl_soa/podl_soa_bpel</a>"<br> xmlns:java=3D"<a class=3D"linkificat=
ion-ext" href=3D"http://schemas.xmlsoap.org/wsdl/java/" title=3D"Linkificat=
ion: http://schemas.xmlsoap.org/wsdl/java/">http://schemas.xmlsoap.org/wsdl=
/java/</a>"<br> xmlns:ncc=3D"<a class=3D"linkification-ext" href=3D"h=
ttp://publications.europe.eu/ncc" title=3D"Linkification: http://publicatio=
ns.europe.eu/ncc">http://publications.europe.eu/ncc</a>"<br> xmlns:ar=
ch=3D"<a class=3D"linkification-ext" href=3D"http://publications.europe.eu/=
archive" title=3D"Linkification: http://publications.europe.eu/archive">htt=
p://publications.europe.eu/archive</a>"<br> xmlns:par=3D"<a class=3D"=
linkification-ext" href=3D"http://publications.europe.eu/parameters" title=
=3D"Linkification: http://publications.europe.eu/parameters">http://publica=
tions.europe.eu/parameters</a>"<br> xmlns:ext=3D"<a class=3D"linkific=
ation-ext" href=3D"http://publications.europe.eu/external" title=3D"Linkifi=
cation: http://publications.europe.eu/external">http://publications.europe.=
eu/external</a>"><br><br> <!--wsdl:import namespace=
=3D"<a class=3D"linkification-ext" href=3D"http://xmlns.oracle.com/Applicat=
ion2/podl_soa/podl_soa_bpel" title=3D"Linkification: http://xmlns.oracle.co=
m/Application2/podl_soa/podl_soa_bpel">http://xmlns.oracle.com/Application2=
/podl_soa/podl_soa_bpel</a>"<br> location=3D"../../../pod=
l_soa_bpel.wsdl"/--><br><br> <wsdl:types><br>&nb=
sp; <xs:schema><br> &n=
bsp; <xs:import schemaLo=
cation=3D"../../../xsd/ncc_rules.xsd"<br> &nbs=
p; &=
nbsp; namespace=3D"<a class=3D"linkification-ext" href=3D"http://publ=
ications.europe.eu/ncc" title=3D"Linkification: http://publications.europe.=
eu/ncc">http://publications.europe.eu/ncc</a>"/><br> &n=
bsp; <xs:import schemaLocation=
=3D"../../../xsd/archive_rules.xsd"<br> =
&nb=
sp; namespace=3D"<a class=3D"linkification-ext" href=3D"http://public=
ations.europe.eu/archive" title=3D"Linkification: http://publications.europ=
e.eu/archive">http://publications.europe.eu/archive</a>"/><br> &nbs=
p; <xs:import sche=
maLocation=3D"../../../xsd/parameters.xsd"<br>  =
; &n=
bsp; namespace=3D"<a class=3D"linkification-ext" href=3D"http:/=
/publications.europe.eu/parameters" title=3D"Linkification: http://publicat=
ions.europe.eu/parameters">http://publications.europe.eu/parameters</a>"/&g=
t;<br> &l=
t;xs:import schemaLocation=3D"../../../xsd/external.xsd"<br> &nb=
sp; =
namespace=3D"<a class=3D"linkification-ext" =
href=3D"http://publications.europe.eu/external" title=3D"Linkification: htt=
p://publications.europe.eu/external">http://publications.europe.eu/external=
</a>"/><br> &=
nbsp; <xs:complexType name=3D"PublicationRules"><br>  =
; &=
lt;xs:sequence><br>  =
; <xs:elemen=
t name=3D"ncc" type=3D"ncc:RuleSet" maxOccurs=3D"1"/><br> &nb=
sp; =
<!--xs:element name=3D"archive" type=3D"arch:Ar=
chiveSet" maxOccurs=3D"1"/--><br> &nb=
sp; </xs:sequence><br=
> </xs=
:complexType><br> </xs:sche=
ma><br> </wsdl:types><br><br> =
<wsdl:message name=3D"service_request"><br> &n=
bsp; <wsdl:part name=3D"catnum" type=3D"xs:string"/><br>&=
nbsp; </wsdl:message><br> <wsdl:mess=
age name=3D"service_response"><br> &n=
bsp; <wsdl:part name=3D"publicationRules" type=3D"PublicationRules"/>=
<br> </wsdl:message><br><br> <wsdl:portTyp=
e name=3D"publication_PT"><br> <wsdl:operation name=
=3D"initialize"><br> <wsdl:input messag=
e=3D"pub:service_request"/><br> <wsdl:o=
utput name=3D"getPublicationRulesOutput" message=3D"pub:service_response"/&=
gt;<br> </wsdl:operation><br> </wsdl:portT=
ype><br><br> <!-- Java binding --><br> <wsdl:bindin=
g name=3D"JavaBinding" type=3D"pub:publication_PT"><br>  =
; <java:binding/><br> <format:typeMapping encodi=
ng=3D"Java" style=3D"Java"><br> <format=
:typeMap typeName=3D"xs:string" formatType=3D"java.lang.String"/><br>&nb=
sp;
<format:typeMap typeName=3D"pub:PublicationRules"
formatType=3D"com.oracle.xmlns.Application2.podl_soa.podl_soa_bpel.publicat=
ion.PublicationRules"
/><br> <format:typeMap typeName=3D"ncc:=
RuleSet" formatType=3D"eu.europe.publications.ncc.RuleSet" /><br> &=
nbsp; <format:typeMap typeName=3D"ncc:NccRule" formatT=
ype=3D"eu.europe.publications.ncc.NccRule" /> &nb=
sp; <br> </format:typeMapping><br>  =
; <wsdl:operation name=3D"initialize"><br> &nb=
sp; <java:operation methodName=3D"getPublicationRules" returnPart=3D"pub=
licationRules"/><br> <wsdl:input/><b=
r> <wsdl:output name=3D"getPublicationRule=
sOutput"/><br> </wsdl:operation><br> </=
wsdl:binding><br><br> <wsdl:service name=3D"PUBLICATION"><br=
> <wsdl:port name=3D"JavaPort" binding=3D"pub:JavaBind=
ing"><br> <java:address className=3D"Pu=
blicationRulesProvider"/><br> </wsdl:port><br>&n=
bsp; </wsdl:service><br><br> <!-- Partner link type --><b=
r> <plnk:partnerLinkType name=3D"publication_LT"><br> &nbs=
p; <plnk:role name=3D"PublicationService"><br>  =
; <plnk:portType name=3D"pub:publication_PT"/><br> &=
nbsp; </plnk:role><br> </plnk:partnerLinkType><br><=
br></wsdl:definitions><br><br>Within the PublicationRulesProvides I s=
et the content of the return type PublicationRules and return it in the end=
.<br>
<br>
Unfortunately when I deploy everything to the SOA server and run the test, =
I always receive the following exception:<br><br><span>
<table style=3D"white-space: normal; background-color: rgb(240, 240, 240);"=
summary=3D"" border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
<tbody>
<tr>
<td>
<div>
<div><span><</span><span>remoteFault</span><span>></span>=20
<div>
<div><span><</span><span>part</span>=20
<span>name</span><span>=3D"</span><b>summary</b><span>"</span><span>&=
gt;</span>=20
<div>
<div><span><</span><span>summary</span><span>></span><span>oracle.fab=
ric.common.FabricException:=20
Error while determining return class of method getPublicationRules : The me=
ta=20
information is not consistent.; nested exception is:=20
oracle.integration.thirdparty.apache.wsif.WSIFException:=20
publicationRules</span><span></</span><span>summary</span><span>></sp=
an>=20
</div></div>
<div><span></</span><span>part</span><span>></span> </div></div>
<div><span><</span><span>part</span>=20
<span>name</span><span>=3D"</span><b>detail</b><span>"</span><span>&g=
t;</span>=20
<div>
<div><span><</span><span>detail</span><span>></span><span>Error while=
=20
determining return class of method getPublicationRules : The meta informati=
on is=20
not consistent.; nested exception is:=20
oracle.integration.thirdparty.apache.wsif.WSIFException:=20
publicationRules</span><span></</span><span>detail</span><span>></spa=
n>=20
</div></div>
<div><span></</span><span>part</span><span>></span> </div></div></div=
>
<div><span></</span><span>remoteFault</span><span>></span></div></div=
></div></td></tr></tbody></table></span><br><p>
What is strange is that if within the PublicationRulesProvider I only
instantiate the return type and immediately return it without setting
it, then I arrive at the next step of my workflow.<br>
<br>
Does anyone have an idea what I did wrong?<br>
<br>
I would greatly appreciate any help to solve this issue!<br>
<br>
Kind regards!</p><auto_cleaned_body_tag></auto_cleaned_body_tag></auto_clea=
ned_body_tag></auto_cleaned_head_tag></auto_cleaned_title_tag></auto_cleane=
d_meta_tag></auto_cleaned_head_tag></auto_cleaned_html_tag></auto_cleaned_d=
octype_tag></td>
</tr>
=09<tr width=3D"100%">
<td class=3D"BE8E8E8" colspan=3D"2" width=3D"100%">
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
<tbody>
<tr> </tr>
</tbody></table>
</td>
=09</tr>
</tbody></table>
<img src=3D"http://webmail.cri.lu/images/dummy.gif" border=3D"0" heig=
ht=3D"12" width=3D"1"><br>
</td>
</tr>
</tbody></table>
<script>
=09/*
=09var h =3D frames.top.main_mail.winLoad();
=09alert(h);
=09</script>
</BODY></HTML>
--b_01_12a79d8ea1ce46987244639dc604b4fc
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello everybody,=0A=0AI need some urgent help concerning the following prob=
lem:=0A=0AI wrote a custom Web service using WSIF which I would like to inv=
okefrom my BPEL process, pass along as input a string and want to returnas =
output a complex type message.=0AI try to set the content of the complex ty=
pe from within the Java class that is called by the WSIF interface operatio=
n.=0A=0AMy WSDL looks as follows:=0A=0A<?xml version=3D"1.0" encoding=3D"ut=
f-8" ?> =0A<wsdl:definitions xmlns:pub=3D"http://xmlns.oracle.com/Applicati=
on2/podl_soa/podl_soa_bpel/publication"=0A targetNamespace=3D"http://xmlns=
.oracle.com/Application2/podl_soa/podl_soa_bpel/publication"=0A xmlns:wsdl=
=3D"http://schemas.xmlsoap.org/wsdl/" xmlns:xs=3D"http://www.w3.org/2001/XM=
LSchema"=0A xmlns:plnk=3D"http://schemas.xmlsoap.org/ws/2003/05/partner-li=
nk/"=0A xmlns:format=3D"http://schemas.xmlsoap.org/wsdl/formatbinding/"=0A=
xmlns:main=3D"http://xmlns.oracle.com/Application2/podl_soa/podl_soa_bpel=
"=0A xmlns:java=3D"http://schemas.xmlsoap.org/wsdl/java/"=0A xmlns:ncc=3D=
"http://publications.europe.eu/ncc"=0A xmlns:arch=3D"http://publications.e=
urope.eu/archive"=0A xmlns:par=3D"http://publications.europe.eu/parameters=
"=0A xmlns:ext=3D"http://publications.europe.eu/external">=0A=0A <!--ws=
dl:import namespace=3D"http://xmlns.oracle.com/Application2/podl_soa/podl_s=
oa_bpel"=0A location=3D"../../../podl_soa_bpel.wsdl"/-->=0A=0A <wsdl:=
types>=0A <xs:schema>=0A <xs:import schemaLocation=3D"../=
../../xsd/ncc_rules.xsd"=0A namespace=3D"http://publica=
tions.europe.eu/ncc"/>=0A <xs:import schemaLocation=3D"../../../=
xsd/archive_rules.xsd"=0A namespace=3D"http://publicati=
ons.europe.eu/archive"/>=0A <xs:import schemaLocation=3D"../../.=
./xsd/parameters.xsd"=0A namespace=3D"http://publicatio=
ns.europe.eu/parameters"/>=0A <xs:import schemaLocation=3D"../..=
/../xsd/external.xsd"=0A namespace=3D"http://publicatio=
ns.europe.eu/external"/>=0A <xs:complexType name=3D"PublicationR=
ules">=0A <xs:sequence>=0A <xs:element na=
me=3D"ncc" type=3D"ncc:RuleSet" maxOccurs=3D"1"/>=0A <!-=
-xs:element name=3D"archive" type=3D"arch:ArchiveSet" maxOccurs=3D"1"/-->=
=0A </xs:sequence>=0A </xs:complexType>=0A =
</xs:schema>=0A </wsdl:types>=0A=0A <wsdl:message name=3D"service_re=
quest">=0A <wsdl:part name=3D"catnum" type=3D"xs:string"/>=0A </w=
sdl:message>=0A <wsdl:message name=3D"service_response">=0A <wsdl=
:part name=3D"publicationRules" type=3D"PublicationRules"/>=0A </wsdl:me=
ssage>=0A=0A <wsdl:portType name=3D"publication_PT">=0A <wsdl:operation=
name=3D"initialize">=0A <wsdl:input message=3D"pub:service_request"/>=
=0A <wsdl:output name=3D"getPublicationRulesOutput" message=3D"pub:ser=
vice_response"/>=0A </wsdl:operation>=0A </wsdl:portType>=0A=0A <!-- J=
ava binding -->=0A <wsdl:binding name=3D"JavaBinding" type=3D"pub:publicat=
ion_PT">=0A <java:binding/>=0A <format:typeMapping encoding=3D"Java" =
style=3D"Java">=0A <format:typeMap typeName=3D"xs:string" formatType=
=3D"java.lang.String"/>=0A <format:typeMap typeName=3D"pub:PublicationR=
ules"formatType=3D"com.oracle.xmlns.Application2.podl_soa.podl_soa_bpel.pub=
lication.PublicationRules"/>=0A <format:typeMap typeName=3D"ncc:RuleSe=
t" formatType=3D"eu.europe.publications.ncc.RuleSet" />=0A <format:typ=
eMap typeName=3D"ncc:NccRule" formatType=3D"eu.europe.publications.ncc.NccR=
ule" /> =0A </format:typeMapping>=0A <wsdl:operation name=3D"ini=
tialize">=0A <java:operation methodName=3D"getPublicationRules" return=
Part=3D"publicationRules"/>=0A <wsdl:input/>=0A <wsdl:output name=
=3D"getPublicationRulesOutput"/>=0A </wsdl:operation>=0A </wsdl:binding=
>=0A=0A <wsdl:service name=3D"PUBLICATION">=0A <wsdl:port name=3D"JavaP=
ort" binding=3D"pub:JavaBinding">=0A <java:address className=3D"Public=
ationRulesProvider"/>=0A </wsdl:port>=0A </wsdl:service>=0A=0A <!-- Pa=
rtner link type -->=0A <plnk:partnerLinkType name=3D"publication_LT">=0A =
<plnk:role name=3D"PublicationService">=0A <plnk:portType name=3D"pu=
b:publication_PT"/>=0A </plnk:role>=0A </plnk:partnerLinkType>=0A=0A</w=
sdl:definitions>=0A=0AWithin the PublicationRulesProvides I set the content=
of the return type PublicationRules and return it in the end.=0A=0AUnfortu=
nately when I deploy everything to the SOA server and run the test, I alway=
s receive the following exception:=0A=0A<remoteFault> <part name=3D"summar=
y"> <summary>oracle.fabric.common.FabricException: Error while determining =
return class of method getPublicationRules : The meta information is not co=
nsistent.; nested exception is: oracle.integration.thirdparty.apache.wsif.W=
SIFException: publicationRules</summary> </part> <part name=3D"detail"> <d=
etail>Error while determining return class of method getPublicationRules : =
The meta information is not consistent.; nested exception is: oracle.integr=
ation.thirdparty.apache.wsif.WSIFException: publicationRules</detail> </par=
t> </remoteFault>=0AWhat is strange is that if within the PublicationRulesP=
rovider I onlyinstantiate the return type and immediately return it without=
settingit, then I arrive at the next step of my workflow.=0A=0ADoes anyone=
have an idea what I did wrong?=0A=0AI would greatly appreciate any help to=
solve this issue!=0A=0AKind regards!=0A =0A/*var h =3D frames=
.top.main_mail.winLoad();alert(h);
--b_01_12a79d8ea1ce46987244639dc604b4fc--