• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2me and wsa

 
simon valter
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i can't get wscompile to generate stubs when i try and do it from the wsdl generated by a axis jax-rpc sample service.
wsdl -> http://rafb.net/paste/results/l2617755.html

can someone please help me find the error.

i get this error

C:\Hello>wscompile -keep -gen:client -f:wsi -verbose config.xml
[RemoteInterfaceGenerator: Generating Java class for: StockQuoteService.java]
[CustomClassGenerator: generating JavaClass for: test]
[CustomClassGenerator: generating JavaClass for: testResponse]
[CustomClassGenerator: generating JavaClass for: getQuote]
[CustomClassGenerator: generating JavaClass for: getQuoteResponse]
warning: Operation test is of the wrong encoding SOAP style/use (rpc/encoded). Document/literal only. Skipping generation of operation.
warning: Operation getQuote is of the wrong encoding SOAP style/use (rpc/encoded). Document/literal only. Skipping generation of operation.
[StubGenerator: Generating Java class for: StockQuoteService_Stub.java]
C:\Hello\.\test\StockQuoteService_Stub.java:14: test.StockQuoteService_Stub is not abstract and does not override abs
tract method getQuote(java.lang.String) in test.StockQuoteService
public class StockQuoteService_Stub implements test.StockQuoteService, javax.xml.rpc.Stub {
^
1 error
error: compilation failed, errors should have been reported
 
simon valter
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it looks like i should set axis to use literal encoding for the service.. does anyone know how?
 
simon valter
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for spam .. it was quite easy, all i had to do was add this to the wsdd

<service name="urn:xmltoday-delayed-quotes" provider="java:RPC" style="document" use="literal">
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Simon says"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
simon valter
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
done
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic