• Post Reply Bookmark Topic Watch Topic
  • New Topic

document/literal webservice axis complex-type:Attempted to write schema for bad QName

 
Christine Spietz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have written the following webservice

1) server-side (Skeleton): PflanzenschutzNameServer.java

2) einer wsdd-datei: (ausschnitt: das service-tag


The webservice is deployd on the server and if i try to connect with my Client (Stub) to the service, everything is fine

My problem:

my webservice must be document/literal, because I don't use an own Client but a Client integrated in Infopath (Microsoft Office Tool, which must have an document(literal-webservice). This means, that the service-tag in the wsdd-file must contain the attributes
.
I've tried it also with style=�wrapped�, but Infopath seems not to understand the wrapped-style.

If I try to deploy my webservice (wsdd-file) with
.
axis 1.1 could not create a wsdl-file, so I can't call my service:-(
axis shows the following error if i try to view the wsdl-file on
http://localhost:8080/axis/services/Pflanzenschutz?wsdl:



This only happens, if my webservice-method returns a complex type like an aaray of strings (String[]). If the service returns a single String instead of an array everything seems to work fine.

Can anybody tell me, where my mistake is?

thank you for your help!!!

tine
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I once tried "Axis array type webservice + Infopath" but it never worked.
But i have not tried it with the newer versions of Axis.

Solution 1: Use the latest infoapth 2003 sp1, yes it has vs.net has managed code, works great with axis or any tool.

Solution 2: Try to use MSSOAP libs inside your infopath js scripts.

Solution 3: Try to correct the error that occurs when you use document/iilteral option. May be try to generate the "proper" WSDD using Java2WSDL utility and then redeploy the service.

Let me know how it goes..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!