web service error
-----------------

                 Key: AXIS-2678
                 URL: https://issues.apache.org/jira/browse/AXIS-2678
             Project: Axis
          Issue Type: Wish
         Environment: WebSphere 5.1
            Reporter: Lou Cunningham
            Priority: Blocker


Hi,
  I have wrote a Java web service that to be used by a .Net application where I 
work. I am using a vendor java api to query and display  statements in a pdf 
file. I have to use the vendor api because our data repository is not a 
database, but is a heirarchial vsam nodes. This repository resides on a 
mainframe and is designed by the same vendor that created the api I am using. I 
have tested the Java code for the service locally via JUnit test and everything 
works. 

  I used Eclipse's web service generator to create the wsdl, 
server-config.wsdd, deploy.wsdd and the undeploy.wsdd files. When I use the web 
service generator I get the warning message below:

The service class "com.here.viewdirect.service.StatementService" does not 
comply to one or more requirements of the JAX-RPC 1.1 specification, and may 
not deploy or function correctly.
  The field or property "keyValue" on the value type 
"com.mobius.vdrapi.PageFactoryNode" used via the service class 
"com.here.viewdirect.service.StatementService" has a data type, 
"java.lang.Object", that is not supported by the JAX-RPC 1.1 specification. 
Instances of the type may not serialize or deserialize correctly. Loss of data 
or complete failure of the Web service may result.
  The field or property "keyValue" on the value type "com.mobius.vdrapi.INode" 
used via the service class "com.here.viewdirect.service.StatementService" has a 
data type, "java.lang.Object", that is not supported by the JAX-RPC 1.1 
specification. Instances of the type may not serialize or deserialize 
correctly. Loss of data or complete failure of the Web service may result.
  The field or property "topicFirstPageData" on the value type 
"com.mobius.vdrapi.TopicSectionNode" used via the service class 
"com.here.viewdirect.service.StatementService" has a data type, 
"java.io.ByteArrayOutputStream", that is not supported by the JAX-RPC 1.1 
specification. Instances of the type may not serialize or deserialize 
correctly. Loss of data or complete failure of the Web service may result.
  The field or property "keyValue" on the value type 
"com.mobius.vdrapi.ListFactoryNode" used via the service class 
"com.here.viewdirect.service.StatementService" has a data type, 
"java.lang.Object", that is not supported by the JAX-RPC 1.1 specification. 
Instances of the type may not serialize or deserialize correctly. Loss of data 
or complete failure of the Web service may result.
  The method "getStatement" on the service class 
"com.here.viewdirect.service.StatementService" uses a data type, 
"java.io.ByteArrayOutputStream", that is not supported by the JAX-RPC 
specification. Instances of the type may not serialize or deserialize 
correctly. Loss of data or complete failure of the Web service may result.
  The value type "com.mobius.vdrapi.ReportPageNode" used via the service class 
"com.here.viewdirect.service.StatementService" does not have a public default 
constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type 
to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web 
service engine may be unable to construct an instance of the value type during 
deserialization.
  The value type "com.mobius.vdrapi.NodeType" used via the service class 
"com.here.viewdirect.service.StatementService" does not have a public default 
constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type 
to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web 
service engine may be unable to construct an instance of the value type during 
deserialization.
  The value type "com.mobius.vdrapi.IListFactory" used via the service class 
"com.here.viewdirect.service.StatementService" does not have a public default 
constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type 
to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web 
service engine may be unable to construct an instance of the value type during 
deserialization.
  The value type "com.mobius.vdrapi.TopicSectionNode" used via the service 
class "com.here.viewdirect.service.StatementService" does not have a public 
default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a 
value type to have a public default constructor, otherwise a JAX-RPC 1.1 
compliant Web service engine may be unable to construct an instance of the 
value type during deserialization.
  The value type "com.mobius.vdrapi.INode" used via the service class 
"com.here.viewdirect.service.StatementService" does not have a public default 
constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type 
to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web 
service engine may be unable to construct an instance of the value type during 
deserialization.

I crossed my fingers and clicked the OK button. I deployed the service on a 
WebSpher server. I next created a client using wsdl2java. I tested the service 
using a simple test method that takes and returns a String. It worked for that, 
but when I try to use the vendor api I get the error message:

Caused by: org.xml.sax.SAXParseException: Premature end of file.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        ... 15 more

Is there any hope, or I am just hosed because of the vendor api?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to