Hi,

I was trying this and had trouble w/ WsGen, even though I passed a -binding
xmlbeans flag and put the jar on the class path, it looks like it it missing
some jaxb related class, any clue what is wrong here?:

[code]
C:\java\xfire\xfire-1.2.6\jack\gen.client>java -cp
.;..\..\xfire-all-1.2.6.jar.;..\..\lib\xfire-all-1.2-SNAPSHOT.jar;C:\
java\cxf\apache-cxf-2.0.3-incubator\lib\ant-1.6.5.jar;..\..\lib\jaxb-api-2.0EA3.jar;..\..\lib\stax-api-1.0.1.jar;..\..\l
ib\jdom-1.0.jar;..\..\lib\jaxb-impl-2.0EA3.jar;..\..\lib\jaxb-xjc-2.0-ea3.jar;..\..\lib\wstx-asl-2.9.3.jar;..\..\lib\com
mons-logging-1.0.4.jar;..\..\lib\activation-1.1.jar;..\..\lib\wsdl4j-1.5.2.jar;..\..\lib\XmlSchema-1.0.3.jar;..\..\lib\x
fire-xmlbeans-1.2.6.jar;..\..\lib\xfire-jsr181-api-1.0-M1.jar;
org.codehaus.xfire.gen.WsGen -wsdl http://localhost:8080/
services/MyService?wsdl -o . -p org.appfuse.client -binding xmlbeans
-overwrite true
Running WsGen...
wsdl    : http://localhost:8080/services/MyService?wsdl
package : org.appfuse.client
output  : .
binding :
externalBindings :
baseURI :
profile :
explictAnnotation : false
overwrite : true
serverStub : true
forceBare : false
Exception in thread "main" java.lang.NoClassDefFoundError:
com/sun/codemodel/JCodeModel
        at
org.codehaus.xfire.gen.Wsdl11Generator.<init>(Wsdl11Generator.java:51)
        at org.codehaus.xfire.gen.WsGen.main(WsGen.java:116)
[/code] 

Ron Anderson wrote:
> 
> This should help with stub generation.
> 
> http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL
> 
> You can also just edit your web/action class that was built with appgen. 
> Here is a code sample of what you would need.
> 
>     public List getCustomers() throws MalformedURLException {
>         
>         log.debug("retreiving customers using soap...");
>         
>         Service serviceModel = new
> ObjectServiceFactory().create(RaterServices.class);
>         
>         RaterServices service = (RaterServices)
>         new XFireProxyFactory().create(serviceModel, endpoint);
>         
>         CustomerWrapper customer = new CustomerWrapper();
>         
>         // Set up example customer for use in query by example
>         customer.setId(null);
>         customer.setCustomerKey(null);
>         customer.setCustomerName(null);
>         customer.setStatus(null);
>         customer.setStatusEffectiveDate(null);
>         
>         return service.getCustomers(customer);
>     }
> 
> ----- Original Message ----
> From: sunisaj <[EMAIL PROTECTED]>
> To: users@appfuse.dev.java.net
> Sent: Wednesday, October 3, 2007 6:37:17 AM
> Subject: [appfuse-user] How to write web service client
> 
> 
> I was able to create webservice using appfuse tutorial (just having
> annotatation helped me to see the WSDL).  I did not find any tutorial to
> see
> how to consume the web service.  Can anyone point me to tutorial where web
> service client can be created to consume web service which appfuse has
> created. Thanks,
> -- 
> View this message in context:
> http://www.nabble.com/How-to-write-web-service-client-tf4561892s2369.html#a13019167
> Sent from the AppFuse - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-write-web-service-client-tp13019167s2369p15750456.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to