IntelliJ Java IDE
The moose likes Web Services and the fly likes document/literal webservice axis complex-type:Attempted to write schema for bad QName Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "document/literal webservice axis complex-type:Attempted to write schema for bad QName" Watch "document/literal webservice axis complex-type:Attempted to write schema for bad QName" New topic
Author

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

Christine Spietz
Greenhorn

Joined: Oct 29, 2004
Posts: 5
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

Joined: Jul 13, 2001
Posts: 3150
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..


Spritle Software Blogs
 
IntelliJ Java IDE
 
subject: document/literal webservice axis complex-type:Attempted to write schema for bad QName
 
Threads others viewed
Getting an Axis webservice working for a .NET client
Axis + CGLIB = BeanSerializerFactory problems
org.xml.sax.SAXException: SimpleDeserializer encountered a child element
Axis Fault: Attempted to write duplicate schema element
Axis Fault: no such operation
IntelliJ Java IDE