[jboss-user] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java

2007-10-14 Thread nirre
I rewrote the build script and used wsconsume instead and had to rewrite some 
of my beans etc etc, but eventually I got it working.

I still think the change of behaviour of the wtools is strange. 

thanks anyway.

/niclas

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094968#4094968

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094968
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jax-rpc/wstools genereate problem

2007-10-14 Thread nirre
I actually did just that ;)

Now I use the wsconsume tool instead and rewrote the build script and the bean 
code that handled all the method/attribute passing.

I think jax-ws is simpler with than jaxrpc, it feels more flexible and simpler 
- dont have to handle all the unwrapping of the types etc. 

The bad thing is it took time and I have to test all the core again.. but 
atleast i learned some new stuff ;)

/nirre

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094972#4094972

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094972
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - jax-rpc/wstools genereate problem

2007-10-11 Thread nirre
Hi all.

I'm having some problems upgrading my environment from jboss 4.0.5 to jboss 4.2 
- I'm running the jobossws/wstools included in the respective release:
jboss 4.0.5GA - jbossws-1.0.3.SP1 (date=200609291417)
jboss 4.2GA - jbossws-1.2.1.GA (build=200704151756) 
I'm not running any jbossws installation outside of the jboss appservers.
I'm using jdk1.5.0_11.

The problem is that the code/tools run fine on the jbossws-1.0.3.SP1
but does not work well with the jbossws-1.2.1.GA (build=200704151756). I'm now 
trying to track down what I have to change/add/remove. Some issues have been 
with the code itself how the artifacts are generated etc that is all fixed and 
ok. 
But there are still issues in the generating of the artifacts.

part of the wsdl:
s:element name=GetAllExternalSalesProjectNrsResponse
  | s:complexType
  |   s:sequence
  | s:element minOccurs=0 maxOccurs=1 
name=GetAllExternalSalesProjectNrsResult 
type=tns:ExternalSalesProjectNrsResult /
  |   /s:sequence
  | /s:complexType
  |   /s:element
  |   s:complexType name=ExternalSalesProjectNrsResult
  | s:sequence
  |   s:element minOccurs=0 maxOccurs=1 name=Result 
type=tns:OperationResult /
  |   s:element minOccurs=0 maxOccurs=1 name=SalesNumbers 
type=tns:ArrayOfExternalSalesNumbers /
  | /s:sequence
  |   /s:complexType
  |   s:complexType name=OperationResult
  | s:sequence
  |   s:element minOccurs=1 maxOccurs=1 name=Success 
type=s:boolean /
  |   s:element minOccurs=1 maxOccurs=1 name=ResultCode 
type=s:int /
  |   s:element minOccurs=0 maxOccurs=1 name=ResultDescription 
type=s:string /
  | /s:sequence
  |   /s:complexType
  |   s:complexType name=ArrayOfExternalSalesNumbers
  | s:sequence
  |   s:element minOccurs=0 maxOccurs=unbounded 
name=ExternalSalesNumbers nillable=true type=tns:ExternalSalesNumbers /
  | /s:sequence
  |   /s:complexType
  |   s:complexType name=ExternalSalesNumbers
  | s:sequence
  |   s:element minOccurs=0 maxOccurs=1 name=Nr type=s:string 
/
  | /s:sequence
  |   /s:complexType

The interesting thing with the wsdl is the ArrayOfExternalSalesNumbers there 
are several of these structures in the wsdl. 

When I use jbossws-1.0.3.SP1 these does not show up in the jaxrpc-mapping.xml 
file and artefacts/classes does not get generated ..
BUT when I use jbossws-1.2.1.GA I get the following in my jaxrpc-mapping.xml:
 java-xml-type-mapping
  |   
java-typecom.company.theIntegration.ArrayOfExternalSalesNumbers/java-type
  |   root-type-qname 
xmlns:typeNS='http://company.com/theIntegration'typeNS:ArrayOfExternalSalesNumbers/root-type-qname
  |   qname-scopecomplexType/qname-scope
  |   variable-mapping
  |java-variable-nameexternalSalesNumbers/java-variable-name
  |xml-element-nameExternalSalesNumbers/xml-element-name
  |   /variable-mapping
  |  /java-xml-type-mapping
BUT no ArrayOfExternalSalesNumbers classes are generated...??

When I then run my application server I get the following warnings:

  | [EndpointMetaData] Cannot load class for type: 
{http://company.com/theIntegration}ArrayOfExternalSalesNumbers,com.company.theIntegration.ArrayOfExternalSalesNumbers
  | 09:18:47,347 WARN  [EndpointMetaData] Cannot load class for type: 
{http://company.com/theIntegration}ArrayOfOpportunityID,com.company.theIntegration.ArrayOfOpportunityID
  | 09:18:47,363 WARN  [EndpointMetaData] Cannot load class for type: 
{http://company.com/theIntegration}ArrayOfSalesTeamRecord,com.company.theIntegration.ArrayOfSalesTeamRecord
  | ... etc etc
  | 
.. and of course the runtime error:
RemoteException occured when invoking web service 
method!java.rmi.RemoteException: Call invocation failed; nested exception is: 
java.io.IOException: Could not transmit message

My wstool-config.xml looks like this:
configuration xmlns=http://www.jboss.org/jbossws-tools; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |xsi:schemaLocation=http://www.jboss.org/jbossws-tools 
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd;
  | wsdl-java location=resources/META-INF/wsdl/theIntegration.wsdl
  | mapping file=jaxrpc-mapping.xml /
  | /wsdl-java
  | /configuration

and my ant task:
  | wstools dest=${wsgenerated} config=${conf}/wstools-config.xml/

Right now I'm kinda stuck :( I have looked trough the JAX-RPC Userguide 1.2  
2.0 but from the looks of it I'm doing what the guides say...

Is there any parameter I should use in the wstools generation??
Why is there a difference in the generation?

many thanks in advance for any input at all  ;)

regards
Niclas



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093889#4093889

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093889
___
jboss-user 

[jboss-user] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java

2007-10-10 Thread nirre
fixed it... i must say it was kinda of an obscure fix...

added the following in wstool.bat:


  | set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/wsdl4j.jar
  | set 
WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxrpc.jar
  | set 
WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxws.jar
  | set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-saaj.jar
  | 

and change the fileattibute to location in the wstool-config.xml ...

but thanks anyway.

IF someone knows why or have comment of the problem/fix I'm very interessed!!

regards
nirre

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093297#4093297

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093297
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java

2007-10-10 Thread nirre
then one included in jboss 4.2 - jbossws-1.2.1.GA (build=200704151756)

I have another problem now. Wstool now (with the above mentioned version) 
generates strange array data types in the jax-rpc file (and it does not 
generate the corresponding java files) - they where not generated when using 
the jbossws 1.03 (the one incuded in jboss 4.0.5)...

At runtime I know get errors like:
[EndpointMetaData] Cannot load class for type: 
{http://company.com/theIntegration}ArrayOfOpportunityID,com.company.theIntegration.ArrayOfOpportunityID

and then I get a:

RemoteException occured when invoking web service 
method!java.rmi.RemoteException: Call invocation failed; nested exception is: 
  | java.io.IOException: Could not transmit message

I dont want to edit the jax-rpc file manually so my question is if arrays is 
handled differently between the versions.

My integrations do work when I use jboss 4.0.4GA and 4.0.5GA (and respective 
standard jbossws for the releases) but I have some difficulties then It comes 
to the one incuded in jboss4.2.

It would be great If anyone have some resources, links that I could go to to 
learn more. I have looked trough some of the documention found at the jbossws 
site but I think I´m following the examples etc...

regards
Niclas

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093524#4093524

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093524

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java

2007-10-08 Thread nirre
Hi all.

I have upgraded my application server to jboss 4.2 and with that the jbossws 
was uppgraded aswell. Now my ant scripts/config files wont work...

The folllowing works in jboss 4.0.5GA: 

configuration xmlns=http://www.jboss.org/jbossws-tools; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |xsi:schemaLocation=http://www.jboss.org/jbossws-tools 
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd;
  | wsdl-java file=myWsdl.wsdl
  | mapping file=jaxrpc-mapping.xml /
  | /wsdl-java
  | /configuration

And when I run this i get this error when using wstools.bat:

 Exception in thread main java.io.IOException: Cannot parse config: Failed to 
parse source: cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear 
in element 'wsdl-java'. @ *unknown*[3,69]
  | at 
org.jboss.ws.tools.config.ToolsSchemaConfigReader.readConfig(ToolsSchemaConfigReader.java:141)
  | at org.jboss.ws.tools.WSTools.generate(WSTools.java:67)
  | at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
  | at org.jboss.ws.tools.WSTools.main(WSTools.java:58)
  | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: 
cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element
  |  'wsdl-java'. @ *unknown*[3,69]
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:178)
  | at 
org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:169)
  | at 
org.jboss.ws.tools.config.ToolsSchemaConfigReader.readConfig(ToolsSchemaConfigReader.java:137)
  | ... 3 more
  | Caused by: org.xml.sax.SAXException: cvc-complex-type.3.2.2: Attribute 
'file' is not allowed to appear in element 'wsdl-java'. @ *unknown*[3,69]
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:348)
  | at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
  | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
  | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
  | at 
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
 Source)
  | at 
org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
  | at 
org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
  | at 
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
  | at 
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
  | at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown 
Source)
  | at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
  | at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
  | at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
  | at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
  | at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
  | at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  | at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  | at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:174)
  | ... 5 more

when searching the internet I´ve come across lots of people using the file 
attribute (+it tworks with jboss 4.0.5).

Would be great if someone could shed some light on the matter for me. Any help 
is appreciated, links, other resources etc (Ihave looked at JbossWs page in 
manuals but no luck...).

thanks in advance
nirre

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092639#4092639

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092639

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user