users@glassfish.java.net

RE: Webservice with rpc/encoded does not deploy

From: Franck de Bruijn <franck.de.bruijn_at_zonnet.nl>
Date: Mon, 6 Mar 2006 22:37:33 +0100

Hi,

Thanks for the replies.

It's a pity though that this is not supported (why does this use-annotation
exist anyway?), since a lot of applications (read: Flex, for example) work
best with RPC/encoded webservices.

Cheers,
Franck

-----Original Message-----
From: Jerome.Dochez_at_Sun.COM [mailto:Jerome.Dochez_at_Sun.COM]
Sent: zondag 5 maart 2006 23:07
To: users_at_glassfish.dev.java.net
Subject: Re: Webservice with rpc/encoded does not deploy

nice explanatory error message indeed ;-)

Vijay, this is something you should look into.

Thanks, Jerome

Arthur Frechette wrote:
> Franck,
>
> RPC/encoded is not a supported style/use mode with JAX-WS 2.0. JAX-WS
> 2.0 is fully compliant with the
> WS-I Basic Profile 1.1 which mandates literal mode. The supported
> style/use modes are: rpc/literal and document/literal.
>
> rpc/encoded is only supported with JAX-RPC 1.1.
>
> -Art
>
> Franck de Bruijn wrote:
>>
>> Hi,
>>
>>
>>
>> I am failing to deploy an RPC/encoded webservice into GlassFish build
>> 39. If I deploy the same webservice with RPC/literal or
>> document/literal everything works like a charm. Am I doing something
>> wrong? Any help is appreciated. I have included the webservice and
>> the exception below.
>>
>>
>>
>> Thanks,
>>
>> Franck
>>
>>
>>
>>
>>
>> Webservice:
>>
>>
>>
>> *import* java.util.Calendar;
>>
>> *import* java.util.Date;
>>
>>
>>
>> *import* javax.jws.WebMethod;
>>
>> *import* javax.jws.WebService;
>>
>> *import* javax.jws.soap.SOAPBinding;
>>
>>
>>
>> @WebService(serviceName = "CustomerWebService")
>>
>> @SOAPBinding(style = SOAPBinding.Style./RPC/, use =
>> SOAPBinding.Use./ENCODED/)
>>
>> *public* *class* CustomerWebService {
>>
>> @WebMethod
>>
>> *public* KlantVo[] findAllCustomers() { ... implementation
>> omitted for brevity ... }
>>
>> }
>>
>>
>>
>>
>>
>> Exception:
>>
>>
>>
>> com.sun.enterprise.deployment.backend.IASDeploymentException: Error
>> while running ejbc -- Fatal Error from EJB Compiler --
>>
C:\dev\jee5\glassfish\domains\domain1\generated\xml\j2ee-modules\CvbWebServi
ces\WEB-INF\wsdl\CustomerWebService.wsdl
>> (The system cannot find the file specified)
>>
>> at java.io.FileInputStream.open(Native Method)
>>
>> at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>
>> at java.io.FileInputStream.<init>(FileInputStream.java:66)
>>
>> at
>>
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:7
0)
>>
>> at
>>
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
.java:161)
>>
>> at java.net.URL.openStream(URL.java:1007)
>>
>> at
>> com.sun.enterprise.webservice.WsUtil.generateFinalWsdl(WsUtil.java:619)
>>
>> at
>> com.sun.enterprise.webservice.WsUtil.generateFinalWsdl(WsUtil.java:565)
>>
>> at
>>
com.sun.enterprise.deployment.backend.WebServiceDeployer.doWebServiceDeploym
ent(WebServiceDeployer.java:148)
>>
>> at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:855)
>>
>> at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:580)
>>
>> at
>>
com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompile
r.java:413)
>>
>> at
>>
com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:2
26)
>>
>> at
>>
com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.
java:1133)
>>
>> at
>>
com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDepl
oyer.java:179)
>>
>> at
>>
com.sun.enterprise.deployment.backend.ModuleDeployer.redeploy(ModuleDeployer
.java:722)
>>
>> at
>>
com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleD
eployer.java:188)
>>
>> at
>>
com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:16
9)
>>
>> at
>>
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
tPhase.java:95)
>>
>> at
>>
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
ploymentService.java:848)
>>
>> at
>>
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:260)
>>
>> at
>>
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:716)
>>
>> at
>>
com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:1
65)
>>
>> at
>>
com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:194)
>>
>>
>>
>
> --
>
> Regards,
>
> ______
> /_____/\
> /_____\\ \
> /_____\ \\ / Arthur D. Frechette
> /_____/ \/ / / Sun Microsystems Computer Company
> /_____/ / \//\ 1 Network Drive
> \_____\//\ / / Burlington, MA 01803-0902
> \_____/ / /\ /
> \_____/ \\ \ Email: arthur.frechette_at_Sun.COM
> \_____\ \\ Phone (781) 442-0466 Fax (781) 442-1610
> \_____\/ Web site...http://www.sun.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net