Re: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-22 Thread Davanum Srinivas

Looks similar to this one - http://issues.apache.org/jira/browse/AXIS2-2352

Can you please zip up your sample and upload it too?

thanks,
dims

On 6/22/07, Raghu Upadhyayula <[EMAIL PROTECTED]> wrote:





Hi,



When I deploy my webservices on my localhost (desktop) and test
it using a java client, it is working fine.



But when the same webservices project is built & deployed on our
development server and tested using java client, I'm getting the below
exception.



org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.java:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.java:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException:
First Element must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:135)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77)

... 6 more



Does anyone tell me why this is happening?



I'm using Axis2 deployed in Jboss.



Thanks

Raghu





--
Davanum Srinivas :: http://davanum.wordpress.com

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



Re: [Axis2] Enabling MTOM partially duplicates message

2007-06-22 Thread Thilina Gunarathne

Tammy,
Sound like a bug to me...

Can you test whether this behaviour shows even for a simple scenerio..
Also AFAIKS I do not seee you are using any MTOM specific features in
your implementation... Hope you have not mistaken
javax.activation.DataSource to OMDataSource...

Thanks,
Thilina

On 6/21/07, Tammy Dugan <[EMAIL PROTECTED]> wrote:

Here is what the response message from by Axis2 service looks like with
MTOM disabled:

http://schemas.xmlsoap.org/soap/envelope/";>http://spin.regenstrief.org/query";>...

This is what the message looks like with MTOM enabled:

--MIMEBoundaryurn_uuid_2BE039143DB2744D651182431292012
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>http://spin.regenstrief.org/query";>...
--MIMEBoundaryurn_uuid_2BE039143DB2744D651182431292012MIMEBoundaryurn_uuid_2BE039143DB2744D651182431292012
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>http://spin.regenstrief.org/query";>...
--MIMEBoundaryurn_uuid_2BE039143DB2744D651182431292012--

As you can see, almost the entire message is repeated twice. The first
time the end of the message is truncated. This really looks like a bug
to me. Any thoughts? I am running the latest released version of Axis2.
Here is the code I am running to make this message:

OMFactory fact = OMAbstractFactory.getOMFactory();
OMNamespace ns =
fact.createOMNamespace("http://spin.regenstrief.org/query";, "r");
OMElement resultXML =
fact.createOMElement("queryDatasetReturnResponse", ns);
Connection con = db.openConnection(); // create a dedicated
connection for streaming from database
OMElement datasetElement = null;

InputStream inputStream = readDataSetXMLToInputStream(con, 1,
"VARIABLE_DATA_SET"); //string of xml from database

if (inputStream != null)
{
ns = new OMNamespaceImpl("", "");
OMDataSource dataSource = new CustomDataSource(inputStream);
datasetElement = new OMSourcedElementImpl("rawData", ns,
fact, dataSource);
}

resultXML.addChild(datasetElement);

class CustomDataSource implements OMDataSource
{
private final InputStream data;

public CustomDataSource(InputStream data)
{
this.data = data;
}

public void serialize(XMLStreamWriter xmlWriter) throws
XMLStreamException
{
XMLStreamReader reader = null;

try
{
StreamingOMSerializer serializer = new
StreamingOMSerializer();
reader = getReader();
serializer.serialize(reader, xmlWriter);
xmlWriter.flush();
} catch (Throwable e)
{
}
}

public XMLStreamReader getReader() throws XMLStreamException
{
XMLStreamReader reader = null;

try
{
reader = StAXUtils.createXMLStreamReader(this.data);
} catch (Exception e)
{
}

return reader;
}
...
}


Tammy

--
Tammy Dugan
Computer Programmer

Regenstrief Institute, Inc.
Medical Informatics
Health Information and Translational Sciences (HITS) Building
410 West 10th Street, Suite 2000
Indianapolis, IN 46202
Main: 317.423.5500
Fax: 317.423.5695
IU campus mail address: HS, 2000

(317) 423 - 5541

Confidentiality Notice: The contents of this message and any files transmitted 
with it may contain confidential and/or privileged information and are intended 
solely for the use of the named addressee(s). Additionally, the information 
contained herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations and 
State laws prohibit you from making further disclosure of such information 
without the specific written consent of the person to whom the information 
pertains or as otherwise permitted by such regulations. A general authorization 
for the release of medical or other information is not sufficient for this 
purpose.

If you have received this message in error, please notify the sender by return 
e-mail and delete the original message. Any retention, disclosure, copying, 
distribution or use of this information by anyone other than the intended 
recipient is strictly prohibited.



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





--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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

Re: SOAP response

2007-06-22 Thread Demetris G


Does anyone know which classes on the server side are packaging and 
sending out the
SOAP Response. Just to save some time looking for them. I was able to 
find the

appropriate classes on the client side that accept the SOAP response.
This is for Axis 1.4. Much appreciated.

Thanks much


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



[Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-22 Thread Raghu Upadhyayula
Hi,

 

When I deploy my webservices on my localhost (desktop) and
test it using a java client, it is working fine.



But when the same webservices project is built & deployed on
our development server and tested using java client, I'm getting the
below exception.

 

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPM
odelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

... 6 more



Does anyone tell me why this is happening?



I'm using Axis2 deployed in Jboss.

 

Thanks

Raghu

 



RE: Array in axis 2

2007-06-22 Thread Chris Shah
Thanks Raghu. That worked... 

Raghu Upadhyayula <[EMAIL PROTECTED]> wrote:v\:* 
{behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* 
{behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) }Hi Chris,
   
  Try changing your wsdl as shown below in blue
   
  Thanks
  Raghu
   
  
-
  
  From: Chris Shah [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 20, 2007 7:33 PM
To: axis-user@ws.apache.org
Subject: Array in axis 2

   
I am writing a doc literal wsdl. I have an issue with creating an array of 
objects. I have an element 'a' and another element 'b' which is an array of 
objects 'a'. WSDL2JAVA gives me 

 

WARNING: Type {http://sample.com/}a missing!

 

Here are the wsdl snippets:

 










 

   
   
   
 
  
   
   

 

ns1 is defined in the definitions as xmlns:ns1="http://mysample.com/";

 

If I specify type="a", that doesn't work either and I get the same warning. 

 

ANy help will be appreciated.

 

TIA

Cris 

 

 

 



-
  
  Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel 
and lay it on us. 



   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 

Axis2- question on creating ConfigurationContext

2007-06-22 Thread Chen, John (N-Avatar Inc.)
On my Axis2 client, I am using the following code to create
ConfigurationContext so that I can engage the rampart. I understand we
have to use absolute path for the module and axis2.xml. Is there anyway
I can load those from my classpath ? I have an tomcat server running and
I am wondering if I can put those file in a jar file and be part of my
classpath.

 

Thanks

 

John



Re: axis2 and axiom DocumentBuilderFactory

2007-06-22 Thread Davanum Srinivas

Johan,

Which version of Axis2? Axiom?

thanks,
dims

On 6/22/07, Johan Roch <[EMAIL PROTECTED]> wrote:


Hi all,

We have a webapp with some Axis2 clients. Axis2 uses Axiom to handle xml.
The problem is that other parts of the application must parse some XML
documents. As long as the Xerces DocumentBuilderFactory is used, we have no
problem. But from a given time, our webapp starts to use the Axiom
DocumentBuilderFactory everywhere and we get some NullPointerException each
time:

Example with JasperReport:

StackTrace on java.lang.NullPointerException

org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:73)

net.sf.jasperreports.engine.util.JRStyledTextParser.(JRStyledTextParser.java:115)

net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:157)

net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92)

net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:74)

... another one:

Caused by: java.lang.NullPointerException
at
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:73)
at
com.notary.util.signature.impl.AbstractVerifierImpl.getDocBuilder(AbstractVerifierImpl.java:116)
at
com.notary.util.signature.impl.iaik.XadesVerifierImpl.verifySignature(XadesVerifierImpl.java:119)
... 55 more



I had a look at the Javadoc about DocumentBuilderFactory
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#newInstance().

and Xerces has a META-INF/services/javax.xml.parsers.DocumentBuilderFactory
file in the jar while Axiom not.

=> the question is: How does Axis2 get the Axiom's DocumentBuilderFactory ?
Does it set the System property ?

About the NullPointerException itself, I guess I should post it in axiom's
mailing list...

Thx,
Johan.

_
Grand passioné ?  Rassemblez tout ce qui vous intéresse   en un seul endroit
! http://get.live.com/live/features


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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



RE: axis1.4 with https

2007-06-22 Thread Johan Roch


It should be a file in JKS format. It can be cacerts or another one. You can 
use keytool but I personaly use SSKeytool to easily create a keystore...



From: "Mark Babcock" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: 
Subject: RE: axis1.4 with https
Date: Fri, 22 Jun 2007 13:10:33 -0400

Is my keystore the cacerts file or the .cer file I exported?

-Original Message-
From: Johan Roch [mailto:[EMAIL PROTECTED]
Sent: Friday, June 22, 2007 1:04 PM
To: axis-user@ws.apache.org
Subject: Re: axis1.4 with https


If you generate code with WSDL2Java, add the parameter
-Djavax.net.ssl.trustStore in the command line:

java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH%
org.apache.axis.wsdl.WSDL2Java ...

>From: Doug Davis <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: axis1.4 with https
>Date: Fri, 22 Jun 2007 12:53:21 -0400
>
>I usually have to add something like this:
>   System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");
>
>to my client code to get it to load the keystore.
>
>thanks
>-Doug
>__
>STSM  |  Web Services Architect  |  IBM Software Group
>(919) 254-6905  |  IBM T/L 444-6905  |  [EMAIL PROTECTED]
>
>
>
>"Chau, Hoang" <[EMAIL PROTECTED]>
>06/22/2007 12:21 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>axis1.4 with https
>
>
>
>
>
>
>HI all,
>
>I have problem in generating code in axis1.4 with https.  Basically, the
>jdk can not find path to the certificate.  Anybody ran into this problem
>before and knew how to solve it, I appreciate it.
>
>
>Hoang
>
>
>This message and any attachments are intended only for the use of the
>addressee and may contain information that is privileged and 
confidential.

>If the reader of the message is not the intended recipient or an
>authorized representative of the intended recipient, you are hereby
>notified that any dissemination of this communication is strictly
>prohibited. If you have received this communication in error, notify the
>sender immediately by return email and delete the message and any
>attachments from your system.

_
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur
votre GSM ? http://get.live.com/messenger/mobile


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


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



_
A la recherche d'un ami d'enfance ? Peut-être est-il dans la liste d'amis de 
vos amis ! http://spaces.live.com/default.aspx?page=Ed01&ss=True



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



RE: axis1.4 with https

2007-06-22 Thread Chau, Hoang
Thank you very much John and Doug.


Hoang

-Original Message-
From: Johan Roch [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 10:04 AM
To: axis-user@ws.apache.org
Subject: Re: axis1.4 with https



If you generate code with WSDL2Java, add the parameter 
-Djavax.net.ssl.trustStore in the command line:

java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH% 
org.apache.axis.wsdl.WSDL2Java ...

>From: Doug Davis <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: axis1.4 with https
>Date: Fri, 22 Jun 2007 12:53:21 -0400
>
>I usually have to add something like this:
>   System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");
>
>to my client code to get it to load the keystore.
>
>thanks
>-Doug
>__
>STSM  |  Web Services Architect  |  IBM Software Group
>(919) 254-6905  |  IBM T/L 444-6905  |  [EMAIL PROTECTED]
>
>
>
>"Chau, Hoang" <[EMAIL PROTECTED]>
>06/22/2007 12:21 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>axis1.4 with https
>
>
>
>
>
>
>HI all,
>
>I have problem in generating code in axis1.4 with https.  Basically, 
>the jdk can not find path to the certificate.  Anybody ran into this 
>problem before and knew how to solve it, I appreciate it.
>
>
>Hoang
>
>
>This message and any attachments are intended only for the use of the 
>addressee and may contain information that is privileged and 
>confidential. If the reader of the message is not the intended 
>recipient or an authorized representative of the intended recipient, 
>you are hereby notified that any dissemination of this communication is 
>strictly prohibited. If you have received this communication in error, 
>notify the sender immediately by return email and delete the message 
>and any attachments from your system.

_
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur 
votre GSM ? http://get.live.com/messenger/mobile


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



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



Re: [Axis2] wsdl2java code generation errors with jaxb and soap header

2007-06-22 Thread andreas netter
I didn't find any documentation about this. i did the modifications by myself 
and described them in this thread.


 Original-Nachricht 
Datum: Fri, 22 Jun 2007 08:57:12 -0400
Von: "Bill Taylor" <[EMAIL PROTECTED]>
An: axis-user@ws.apache.org, [EMAIL PROTECTED]
Betreff: Re: [Axis2] wsdl2java code generation errors with jaxb and soap header

> Can you tell me where you found the documentation on how to modify the
> generated Java code?  I am having trouble figuring out how the generated
> Java code works.  Thanks.
> 
> Bill Taylor
> 
> On 6/21/07, andreas netter <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > has nobody a comment on this?
> > i think it is no good idea to fix errors in the generated code manually.
> >
> > greets,
> > andi
> >
> > [EMAIL PROTECTED] schrieb:
> > > Hello,
> > >
> > > I generate client code out of a wsdl with axis2 (v. 1.2) wsdl2java and
> > jaxbri(v. 2.0.2) databinding.
> > > the wsdl not only defines request and reply messages but also the
> header
> > element of the soap message.
> > >
> > > i have the following problems with the generated code:
> > > 1) The generated code for the client stub doesn't compile because of a
> > parameter error in the "toOM"-Method for the Header.
> > > 2) When i fix the error, the invocation of "toOM" fails because of
> > incorrect/ missing values when creating the OMElement for the Header
> > > 3) When i fix this error too by filling in the correct values for the
> > HeaderType, the client code works.
> > >
> > > I think the wsdl is correct because generated code with adb binding
> out
> > of this wsdl works fine.
> > >
> > > It seems that axis2 code generation doesn't generate correct code with
> > jaxb binding when you have defined a soap header in the wsdl.
> > > Does someone have a similiar problem (or fixed it)?
> > >
> > > greetings from sunny munich :)
> > > andi
> > >
> > > some code snippets from the generated stub:
> > >
> > > "toOM"-Method call. "mMS150_Display0" represents the request data
> type,
> > "mws1" the header data type.
> > > 1)--
> > > **snip**
> > > env = toEnvelope(getFactory(
> > >   _operationClient.getOptions().getSoapVersionURI()),
> > >   mMS150_Display0,
> > >   optimizeContent(new javax.xml.namespace.QName("",
> > "MMS150_Display")));
> > > env.build();
> > > // add the children only if the parameter is not null
> > > if (mws1!=null){
> > >   env.getHeader().addChild(
> > >   toOM(mws1, optimizeContent(new
> javax.xml.namespace.QName("",
> > "MMS150_Display";
> > > }
> > > **snap**
> > >
> > > "toOM"-Method for the header:
> > > 2)--
> > > **snip**
> > > private org.apache.axiom.om.OMElement toOM(
> > net.company.mws.mws2.HeaderType param,
> org.apache.axiom.soap.SOAPFactoryfactory, boolean optimizeContent) {
> > > try {
> > > javax.xml.bind.JAXBContext context =
> > net_company_mws_mws2_HeaderType;
> > > javax.xml.bind.Marshaller marshaller =
> context.createMarshaller
> > ();
> > >
> marshaller.setProperty(javax.xml.bind.Marshaller.JAXB_FRAGMENT,
> > Boolean.TRUE);
> > >
> > > JaxbRIDataSource source = new JaxbRIDataSource(
> > net.company.mws.mws2.HeaderType.class,
> > > param,
> > > marshaller,
> > > "",
> > > "");
> > > org.apache.axiom.om.OMNamespace namespace =
> > factory.createOMNamespace("",
> > >null);
> > > return factory.createOMElement(source, "", namespace);
> > > } catch (javax.xml.bind.JAXBException bex){
> > > throw new RuntimeException(bex);
> > > }
> > > }
> > >
> > > **snap**
> > >
> > > the call of the "toOM"-Method (with Parameters HeaderType, boolean)
> > doesn't fit with the signature of the toOm-Method (HeaderType,
> SOAPFactory,
> > boolean)
> > > i can correct this error by adding
> > "getFactory(_operationClient.getOptions().getSoapVersionURI())" to the
> > toOM-Method call in the generated stub.
> > > then i run into the second error i mentioned above.
> > >
> > > The following code snippet shows the correct values for in the
> > "toOM"-Method:
> > > 3)--
> > > **snip**
> > > JaxbRIDataSource source = new JaxbRIDataSource(
> > net.company.mws.mws2.HeaderType.class,
> > > param,
> > > marshaller,
> > > "
> > http://mws.company.net/mws2";,
> > > "mws");
> > > org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace
> > ("",
> > >  

RE: axis1.4 with https

2007-06-22 Thread Mark Babcock
Is my keystore the cacerts file or the .cer file I exported?

-Original Message-
From: Johan Roch [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 1:04 PM
To: axis-user@ws.apache.org
Subject: Re: axis1.4 with https


If you generate code with WSDL2Java, add the parameter 
-Djavax.net.ssl.trustStore in the command line:

java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH% 
org.apache.axis.wsdl.WSDL2Java ...

>From: Doug Davis <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: axis1.4 with https
>Date: Fri, 22 Jun 2007 12:53:21 -0400
>
>I usually have to add something like this:
>   System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");
>
>to my client code to get it to load the keystore.
>
>thanks
>-Doug
>__
>STSM  |  Web Services Architect  |  IBM Software Group
>(919) 254-6905  |  IBM T/L 444-6905  |  [EMAIL PROTECTED]
>
>
>
>"Chau, Hoang" <[EMAIL PROTECTED]>
>06/22/2007 12:21 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>axis1.4 with https
>
>
>
>
>
>
>HI all,
>
>I have problem in generating code in axis1.4 with https.  Basically, the
>jdk can not find path to the certificate.  Anybody ran into this problem
>before and knew how to solve it, I appreciate it.
>
>
>Hoang
>
>
>This message and any attachments are intended only for the use of the
>addressee and may contain information that is privileged and confidential.
>If the reader of the message is not the intended recipient or an
>authorized representative of the intended recipient, you are hereby
>notified that any dissemination of this communication is strictly
>prohibited. If you have received this communication in error, notify the
>sender immediately by return email and delete the message and any
>attachments from your system.

_
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur 
votre GSM ? http://get.live.com/messenger/mobile


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


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



Re: axis1.4 with https

2007-06-22 Thread Johan Roch


If you generate code with WSDL2Java, add the parameter 
-Djavax.net.ssl.trustStore in the command line:


java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH% 
org.apache.axis.wsdl.WSDL2Java ...



From: Doug Davis <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: axis1.4 with https
Date: Fri, 22 Jun 2007 12:53:21 -0400

I usually have to add something like this:
  System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");

to my client code to get it to load the keystore.

thanks
-Doug
__
STSM  |  Web Services Architect  |  IBM Software Group
(919) 254-6905  |  IBM T/L 444-6905  |  [EMAIL PROTECTED]



"Chau, Hoang" <[EMAIL PROTECTED]>
06/22/2007 12:21 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
axis1.4 with https






HI all,

I have problem in generating code in axis1.4 with https.  Basically, the
jdk can not find path to the certificate.  Anybody ran into this problem
before and knew how to solve it, I appreciate it.


Hoang


This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and confidential.
If the reader of the message is not the intended recipient or an
authorized representative of the intended recipient, you are hereby
notified that any dissemination of this communication is strictly
prohibited. If you have received this communication in error, notify the
sender immediately by return email and delete the message and any
attachments from your system.


_
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur 
votre GSM ? http://get.live.com/messenger/mobile



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



Re: SOAP response

2007-06-22 Thread Demetris G


Hey Jeff,

   nicely done - one can certainly not do without experimenting and 
analyzing the "line"
into and out of servers/clients to find out what is going on. And what 
you listed below

can certainly help me. In fact I did suspect that
I do get extraneous characters from these engines as my socket 
monitoring loops
spit out nulls before and after the messages. In any case, there is 
nothing much in the
code to see now, it is a simple client sitting listening to a port on 
the localhost while
the Axis stubs write to that port with the service call. Once the SOAP 
arrives I capture
it, I feed it manually to the server Axis on another machine, capture 
the output and
then feed it manually back in the waiting client. Sometimes depending on 
how I
send the headers or the SOAP body the client will block and only if I 
kill the response
sending process the client will come back with the Connection Refused 
message -
otherwise if I add a CR or an LF to the mix then the client will instead 
give me either
a SAX parsing error without blocking or it will give me No Content 
allowed in trailing
section - for this in fact I found some postings on it that do seem to 
touch on the issue
of how the client works and why it blocks: 
http://www.nabble.com/Content-is-not-allowed-in-trailing-section-tf75635.html#a205589


   In any case, this reveals that I am not sending something that the 
client excepts like
you very correctly pointed out but I am not doing anything fancy - I get 
the post,
I retrieve the headers and everything else around them and I send them 
over. And

as you could see my SOAP response that I feed back into the client resembles
very much the SOAP response you captured in the tcpmon (which by the way I
installed and I am playing with).

   Anyway - once again - fantastic job in responding man and I 
appreciate it

and I will certainly let you know what I find out later on today.

Cheers



Walker, Jeff wrote:

Hi,
Well, of course without looking at your code and setup, I can't really
help much.
All I can say is, I tried to simulate the stopping of the server. Here's
what I did:

1. I have a basic example web service up and running. The service runs
on WebSphere 6.0, the client is actually a small Java program running on
Eclipse 3.2, but they both exist on the same physical machine. I also
run org.apache.axis.utils.tcpmon to watch the request and response msgs
going bck and forth.
2. I placed a breakpoint in one of my service methods, and started the
server in debug mode.
3. I started the client and made a call to the web service.
4. The breakpoint in the service was hit. I looked at tcpmon and can see
the request that went to the server. The text area that shows the
response was as expected, totally, empty. At the client, it is
blocked-waiting for the response.
5. At this point, I stopped the debugger, which basically kills the
whole service.
6. Not sure exactly where it comes from, but it looks like the service
(Axis?) throws this response back to the lcient:
  java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
...
I can see this clearly in tcpmon. The client receives that response and
that causes a RemoteException to pop up in my client. The text is:
Caught a RemoteException when retrieving data: (0)null


So, how does this help?
Well, I didn't see any of those strange characters that preceded and
followed the request/response you showed in one of your emails.
Admittely, my web service does minimal parsing of the xml, but it shows
that the client is blocked-waiting for a response. If it fails to get a
correct one, you either get a timeout, a RemoteException or SOAP Fault.
I killed the debugging session, and the client received the "connection
refused .." response which was interpreted as a RemoteException. I
cannot see how your getting a SAX parsing error, if the client should be
blocked-waiting on your response. (You never mention that you may be
doing asynchronous web service calls, so I am assuming your doing
synchronous calls).

I can only conclude that some part of your setup is very non-standard.
It seems like the service is not a real web service. At this point, you
need to see exactly what is being sent from the client, and what is
being sent back from your simulated service, in normal expected
situation and when you kill the service. I would recommend using Axis's
tcpmon because it is very easy to setup, but it 'may' clean up certain
extraneous characters, and so a line sniffer would be better, but
obviously way more dificult to get a hold of and setup.
Good luck!
-jeff



-Original Message-
From: Demetris G [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 6:46 PM

To: axis-user@ws.apache.org
Subject: Re: SOAP response


One thing I noticed is that if I kill the server response process that 
is forwarding the SOAP
response to the c

Re: axis1.4 with https

2007-06-22 Thread Doug Davis
I usually have to add something like this:
  System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");

to my client code to get it to load the keystore.

thanks
-Doug
__
STSM  |  Web Services Architect  |  IBM Software Group
(919) 254-6905  |  IBM T/L 444-6905  |  [EMAIL PROTECTED]



"Chau, Hoang" <[EMAIL PROTECTED]> 
06/22/2007 12:21 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
axis1.4 with https






HI all,
 
I have problem in generating code in axis1.4 with https.  Basically, the 
jdk can not find path to the certificate.  Anybody ran into this problem 
before and knew how to solve it, I appreciate it.
 
 
Hoang
 

This message and any attachments are intended only for the use of the 
addressee and may contain information that is privileged and confidential. 
If the reader of the message is not the intended recipient or an 
authorized representative of the intended recipient, you are hereby 
notified that any dissemination of this communication is strictly 
prohibited. If you have received this communication in error, notify the 
sender immediately by return email and delete the message and any 
attachments from your system. 


class loading problem

2007-06-22 Thread Michele Mazzucco
Hi all,

I've compiled a module on a machine using Java 1.6 and deployed on
another machine running Java 1.5. When I start tomcat I get a
ClassNotFoundException on the module class -- which is correctly
included and configured into the mar file.
If I compile the module with Java 1.5 it works fine.
I guess this is not a normal behavior, is it?

Michele


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



RE: WSDL2Java for HTTPS

2007-06-22 Thread Mark Babcock
How do I use the JVM arg for javax.net.ssl.trustStore?

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 11:37 AM
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java for HTTPS

try using  for the javax.net.ssl.trustStore

On 6/22/07, Mark Babcock <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am trying to generate stubs with the WSDL2Java tool
>
> I imported my certificate into my keystore (cacerts) using
>
> The keytool.
>
>
>
> When I run my build file I get the following exception:
>
>
>
>  [java] javax.net.ssl.SSLHandshakeException:
> sun.security.validator.Validato
>
> rException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPat
>
> hBuilderException: unable to find valid certification path to
requested
> target
>
>
>
> 
>
>
>
> 
>
> 
>
> 
>
>
>
> 
>
>
>
>
>
> 
>
> 
>
> 
>
>   
>
> 
>
>   
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>   
>
>   https://URL/"/>
>
>   
>
>value="-Djavax.net.ssl.trustStore=c:/program
> files/javajre1.6.0_01/lib/security/cacerts" />
>
> 
>
>   
>
>
>
>depends="generateWebServiceStubs">
>
> 
>
>   Building xxx WSDL 2 Java\par
>
> 
>
>   
>
> 
>
>
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

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


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



axis1.4 with https

2007-06-22 Thread Chau, Hoang
HI all,
 
I have problem in generating code in axis1.4 with https.  Basically, the
jdk can not find path to the certificate.  Anybody ran into this problem
before and knew how to solve it, I appreciate it.
 
 
Hoang

 




-
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended
recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.

Re: WSDL2Java for HTTPS

2007-06-22 Thread Davanum Srinivas

http://ant.apache.org/manual/CoreTasks/java.html

On 6/22/07, Mark Babcock <[EMAIL PROTECTED]> wrote:

How do I use the JVM arg for javax.net.ssl.trustStore?

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Friday, June 22, 2007 11:37 AM
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java for HTTPS

try using  for the javax.net.ssl.trustStore

On 6/22/07, Mark Babcock <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am trying to generate stubs with the WSDL2Java tool
>
> I imported my certificate into my keystore (cacerts) using
>
> The keytool.
>
>
>
> When I run my build file I get the following exception:
>
>
>
>  [java] javax.net.ssl.SSLHandshakeException:
> sun.security.validator.Validato
>
> rException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPat
>
> hBuilderException: unable to find valid certification path to
requested
> target
>
>
>
> 
>
>
>
> 
>
> 
>
> 
>
>
>
> 
>
>
>
>
>
> 
>
> 
>
> 
>
>   
>
> 
>
>   
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>   
>
>   https://URL/"/>
>
>   
>
>value="-Djavax.net.ssl.trustStore=c:/program
> files/javajre1.6.0_01/lib/security/cacerts" />
>
> 
>
>   
>
>
>
>depends="generateWebServiceStubs">
>
> 
>
>   Building xxx WSDL 2 Java\par
>
> 
>
>   
>
> 
>
>
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

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


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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



axis2 and axiom DocumentBuilderFactory

2007-06-22 Thread Johan Roch


Hi all,

We have a webapp with some Axis2 clients. Axis2 uses Axiom to handle xml. 
The problem is that other parts of the application must parse some XML 
documents. As long as the Xerces DocumentBuilderFactory is used, we have no 
problem. But from a given time, our webapp starts to use the Axiom 
DocumentBuilderFactory everywhere and we get some NullPointerException each 
time:


Example with JasperReport:

StackTrace on java.lang.NullPointerException

org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:73)

net.sf.jasperreports.engine.util.JRStyledTextParser.(JRStyledTextParser.java:115)

net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:157)

net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92)

net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:74)

... another one:

Caused by: java.lang.NullPointerException
		at 
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:73)
		at 
com.notary.util.signature.impl.AbstractVerifierImpl.getDocBuilder(AbstractVerifierImpl.java:116)
		at 
com.notary.util.signature.impl.iaik.XadesVerifierImpl.verifySignature(XadesVerifierImpl.java:119)

... 55 more



I had a look at the Javadoc about DocumentBuilderFactory  
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#newInstance().


and Xerces has a META-INF/services/javax.xml.parsers.DocumentBuilderFactory 
file in the jar while Axiom not.


=> the question is: How does Axis2 get the Axiom's DocumentBuilderFactory ? 
Does it set the System property ?


About the NullPointerException itself, I guess I should post it in axiom's 
mailing list...


Thx,
Johan.

_
Grand passioné ?  Rassemblez tout ce qui vous intéresse   en un seul endroit 
! http://get.live.com/live/features



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



RE: SOAP response

2007-06-22 Thread Walker, Jeff
Hi,
Well, of course without looking at your code and setup, I can't really
help much.
All I can say is, I tried to simulate the stopping of the server. Here's
what I did:

1. I have a basic example web service up and running. The service runs
on WebSphere 6.0, the client is actually a small Java program running on
Eclipse 3.2, but they both exist on the same physical machine. I also
run org.apache.axis.utils.tcpmon to watch the request and response msgs
going bck and forth.
2. I placed a breakpoint in one of my service methods, and started the
server in debug mode.
3. I started the client and made a call to the web service.
4. The breakpoint in the service was hit. I looked at tcpmon and can see
the request that went to the server. The text area that shows the
response was as expected, totally, empty. At the client, it is
blocked-waiting for the response.
5. At this point, I stopped the debugger, which basically kills the
whole service.
6. Not sure exactly where it comes from, but it looks like the service
(Axis?) throws this response back to the lcient:
  java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
...
I can see this clearly in tcpmon. The client receives that response and
that causes a RemoteException to pop up in my client. The text is:
Caught a RemoteException when retrieving data: (0)null


So, how does this help?
Well, I didn't see any of those strange characters that preceded and
followed the request/response you showed in one of your emails.
Admittely, my web service does minimal parsing of the xml, but it shows
that the client is blocked-waiting for a response. If it fails to get a
correct one, you either get a timeout, a RemoteException or SOAP Fault.
I killed the debugging session, and the client received the "connection
refused .." response which was interpreted as a RemoteException. I
cannot see how your getting a SAX parsing error, if the client should be
blocked-waiting on your response. (You never mention that you may be
doing asynchronous web service calls, so I am assuming your doing
synchronous calls).

I can only conclude that some part of your setup is very non-standard.
It seems like the service is not a real web service. At this point, you
need to see exactly what is being sent from the client, and what is
being sent back from your simulated service, in normal expected
situation and when you kill the service. I would recommend using Axis's
tcpmon because it is very easy to setup, but it 'may' clean up certain
extraneous characters, and so a line sniffer would be better, but
obviously way more dificult to get a hold of and setup.
Good luck!
-jeff



-Original Message-
From: Demetris G [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 6:46 PM
To: axis-user@ws.apache.org
Subject: Re: SOAP response


One thing I noticed is that if I kill the server response process that 
is forwarding the SOAP
response to the client, the client spits out the message that there was 
a SAX Parser
exception - Content cannot be in trailing section ?? That makes no sense

- here is the
complete response that is very similar to Jeff's - to make this a bit 
readable I am showing
only part of the soap body:

HTTP/1.1 200 OK
MIME-Version: 1.0
Content-Type: text/xml; charset=utf-8
Server: The Knopflerfish HTTP Server
Connection: Close
Date: Thu, 21 Jun 2007 20:31:44 GMT

http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="http://soapobject.bundle.knopflerfish.org";>

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




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



Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for

2007-06-22 Thread Ajith Ranabahu

Hi,
You can use -pn, -sn options to specify the different port/service
combinations. As for the point raised by Kim, yes it is a problem
since now each port will yield a different service. Really this
becomes a issue when you have multiple bindings and multiple
porttypes.

Ajith

On 6/22/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:

How can I do "generate code for each port with separate WSDL2Java
calls" if I can't modify wsdl file, because it was given by wsrp
specification 
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl
 ?

Regards,
Alexey


On 6/22/07, Sagnwoo Kim <[EMAIL PROTECTED]> wrote:
> Ajith suggested multiple wsdl files for the solution of multiple ports. I
> have a question for that. When you want to create client from the wsdl
> files. with WSDL2Java and if you have multiple wsdl files for one service.
> Then you have to create multiple clients as well for every ports? Even
> though they are all under the same service?
>
> Thanks
> Sangwoo Kim
>
>
> On 6/22/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> > Hi Ajith,
> >
> >   Thanks for the comments. Look forward to your explanation. Like to know
> the difference between the workaround and the expected.
> >
> > Thanks,
> > -Bo
> >
> >
> > On 6/13/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > We will definitely look at the possibility of supporting this during
> > > the hackathon. I will perhaps explain in a separate mail what is the
> > > thinking behind starting from the port but it seems that we need to
> > > rethink this when it comes to skeletons.
> > >
> > > What I can suggest as a workaround is to generate code for each port
> > > with separate WSDL2Java calls (which will yield multiple skeletons).
> > > You can make this easy if you use the ant task
> > >
> > > Ajith
> > >
> > > On 6/13/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> > > > Hi Amila and all,
> > > >
> > > >   In case this is not working yet, can you suggest any alternative? I
> have a
> > > > few services that shared a lot of common data among them. I have to
> move all
> > > > the methods in all services into one mega service and change method
> name if
> > > > necessary to avoid conflicts. Mixing methods of different purpose into
> one
> > > > service looks messy.
> > > >
> > > >Appreciate any advice.
> > > >
> > > > -Bo
> > > >
> > > >
> > > > On 5/24/07, Jess Fisher < [EMAIL PROTECTED]> wrote:
> > > > > I still cannot get all the portTypes generated even with Axis 1.2.
> Any
> > > > plans on fixing this ?
> > > > >
> > > > >
> > > > > Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > Sorry to bother you again. Just want to know if this is a bug or I
> did not
> > > > set the parameter correctly. Any advice on how to make this work.
> > > > >
> > > > > Thanks,
> > > > > -Bo
> > > > >
> > > > >
> > > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > I attached the wsdls from the original email.
> > > > > >
> > > > > > Thanks,
> > > > > > -Bo
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 5/20/07, Amila Suriarachchi < [EMAIL PROTECTED] >
> wrote:
> > > > > > > Can you send your wsdl? do you have ports for each bining?
> > > > > > > Actually code is generated per port.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > >   Just wondering if this is still an issue in Axis2 1.2 or I
> did not
> > > > put the parameters properly.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > -Bo
> > > > > > > >
> > > > > > > > On 5/17/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > > > Thanks, Amila. I tried your advice using no -pn and -sn. It
> still
> > > > only generated last one binding out of the 4. I used asix2 1.2
> release.
> > > > > > > > >
> > > > > > > > > Here is the command line. Anything I did not do right?
> Attached is
> > > > the output files and wsdl files. Sorry for the 500k size.
> > > > > > > > >
> > > > > > > > > C:\programs\work>wsdl2java -o output -p com.xyz.nbi -t -ss
> -sd -g
> > > > -S src -R src -uri wsrp_service.wsdl
> > > > > > > > > Using AXIS2_HOME:   C:\programs\axis2- 1.2
> > > > > > > > > Using JAVA_HOME:C:\programs\jdk1.5.0_09
> > > > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > > > 'file:/C:/programs/work/'.
> > > > > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative
> to
> > > > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > > > > > > > > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> > > > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > > > > > > > > Retrieving schema at ' http://www.w3.org/2001/xml.xsd',
> relative
> > > > to 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > > > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > > > 'file:/C:/programs/work/'.
> > > > > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative
> to
> > > > 'file:/C:/programs/work/wsrp_v1_bindings.w

Re: WSDL2Java pn option issue

2007-06-22 Thread Sagnwoo Kim

Thank you for your timely response.

Sangwoo Kim

On 6/22/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:


Do you use Axis2 version 1.2?
I ahve faced with same problem. Try to use Axis2 version 1.1, seems it
works.

Regards,
Alexey


On 6/22/07, Sagnwoo Kim <[EMAIL PROTECTED]> wrote:
> Hi all, I am newbie at Axis2 and having some issue here
>
> Now Im trying to generate skeleton files using WSDL2Java out of my wsdl
> file. My wsdl file has currently 3 ports. If I just go thru the
WSDL2Java
> with the wsdl file it only generates skeleton file which has only one
port.
> This is something intended by the Axis2 developer team as far as I know.
So
> for the solution of that I can use "-pn" option which port I will chose.
But
> it doesn't work for me.
>
> When I generate the skeleton file I use "java
> org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb
-s
> -wv 1.2 -ss -sd -pn urn:my_service:I_Port". But this gives me skeleton
file
> which contains only methods defined under "S_Port". The S_Port is the
> default port generated when I don't use "-pn" option. It seems like
"-pn"
> doesn't work. Can anyone address me how to solve this issue?
>
> The following is the my_service.wsdl file I have.
>
> 
> http://schemas.xmlsoap.org/wsdl/ "
> xmlns:api_binding="urn:api
> _binding"
> xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/";
> targetNamespace="urn:my_service">
>
>  location="api_binding.wsdl" />
>
> 
>
>  binding="api_binding:I_SoapBinding">
>  location="http://localhost/axis2/services/urn:api:i"; />
> 
>
>  binding="api_binding:S_SoapBinding">
>  location="http://localhost/axis2/services/urn:api:s"; />
> 
>
>  binding="api_binding:P_SoapBinding">
>  location="http://localhost/axis2/services/urn:api:p"; />
> 
>
> 
>
> 
>
> Thank you
> Sangwoo Kim
>

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




Re: WSDL2Java pn option issue

2007-06-22 Thread Alexey Zavizionov

Do you use Axis2 version 1.2?
I ahve faced with same problem. Try to use Axis2 version 1.1, seems it works.

Regards,
Alexey


On 6/22/07, Sagnwoo Kim <[EMAIL PROTECTED]> wrote:

Hi all, I am newbie at Axis2 and having some issue here

Now Im trying to generate skeleton files using WSDL2Java out of my wsdl
file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java
with the wsdl file it only generates skeleton file which has only one port.
This is something intended by the Axis2 developer team as far as I know. So
for the solution of that I can use "-pn" option which port I will chose. But
it doesn't work for me.

When I generate the skeleton file I use "java
org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s
-wv 1.2 -ss -sd -pn urn:my_service:I_Port". But this gives me skeleton file
which contains only methods defined under "S_Port". The S_Port is the
default port generated when I don't use "-pn" option. It seems like "-pn"
doesn't work. Can anyone address me how to solve this issue?

The following is the my_service.wsdl file I have.


http://schemas.xmlsoap.org/wsdl/ "
xmlns:api_binding="urn:api
_binding"
xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/";
targetNamespace="urn:my_service">






http://localhost/axis2/services/urn:api:i"; />



http://localhost/axis2/services/urn:api:s"; />



http://localhost/axis2/services/urn:api:p"; />






Thank you
Sangwoo Kim



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



WSDL2Java pn option issue

2007-06-22 Thread Sagnwoo Kim

Hi all, I am newbie at Axis2 and having some issue here

Now Im trying to generate skeleton files using WSDL2Java out of my wsdl
file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java
with the wsdl file it only generates skeleton file which has only one port.
This is something intended by the Axis2 developer team as far as I know. So
for the solution of that I can use "-pn" option which port I will chose. But
it doesn't work for me.

When I generate the skeleton file I use "java
org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s
-wv 1.2 -ss -sd -pn urn:my_service:I_Port". But this gives me skeleton file
which contains only methods defined under "S_Port". The S_Port is the
default port generated when I don't use "-pn" option. It seems like "-pn"
doesn't work. Can anyone address me how to solve this issue?

The following is the my_service.wsdl file I have.


http://schemas.xmlsoap.org/wsdl/ "
   xmlns:api_binding="urn:api_binding"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
   targetNamespace="urn:my_service">

   

   

   
   http://localhost/axis2/services
/urn:api:i" />
   

   
   http://localhost/axis2/services/urn:api:s"; />
   

   
   http://localhost/axis2/services/urn:api:p"; />
   

   



Thank you
Sangwoo Kim


Re: WSDL2Java for HTTPS

2007-06-22 Thread Davanum Srinivas

try using  for the javax.net.ssl.trustStore

On 6/22/07, Mark Babcock <[EMAIL PROTECTED]> wrote:





I am trying to generate stubs with the WSDL2Java tool

I imported my certificate into my keystore (cacerts) using

The keytool.



When I run my build file I get the following exception:



 [java] javax.net.ssl.SSLHandshakeException:
sun.security.validator.Validato

rException: PKIX path building failed:
sun.security.provider.certpath.SunCertPat

hBuilderException: unable to find valid certification path to requested
target



























  



  













  

  https://URL/"/>

  

  



  



  



  Building xxx WSDL 2 Java\par



  









--
Davanum Srinivas :: http://davanum.wordpress.com

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



Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for

2007-06-22 Thread Alexey Zavizionov

How can I do "generate code for each port with separate WSDL2Java
calls" if I can't modify wsdl file, because it was given by wsrp
specification 
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl
?

Regards,
Alexey


On 6/22/07, Sagnwoo Kim <[EMAIL PROTECTED]> wrote:

Ajith suggested multiple wsdl files for the solution of multiple ports. I
have a question for that. When you want to create client from the wsdl
files. with WSDL2Java and if you have multiple wsdl files for one service.
Then you have to create multiple clients as well for every ports? Even
though they are all under the same service?

Thanks
Sangwoo Kim


On 6/22/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> Hi Ajith,
>
>   Thanks for the comments. Look forward to your explanation. Like to know
the difference between the workaround and the expected.
>
> Thanks,
> -Bo
>
>
> On 6/13/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > We will definitely look at the possibility of supporting this during
> > the hackathon. I will perhaps explain in a separate mail what is the
> > thinking behind starting from the port but it seems that we need to
> > rethink this when it comes to skeletons.
> >
> > What I can suggest as a workaround is to generate code for each port
> > with separate WSDL2Java calls (which will yield multiple skeletons).
> > You can make this easy if you use the ant task
> >
> > Ajith
> >
> > On 6/13/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> > > Hi Amila and all,
> > >
> > >   In case this is not working yet, can you suggest any alternative? I
have a
> > > few services that shared a lot of common data among them. I have to
move all
> > > the methods in all services into one mega service and change method
name if
> > > necessary to avoid conflicts. Mixing methods of different purpose into
one
> > > service looks messy.
> > >
> > >Appreciate any advice.
> > >
> > > -Bo
> > >
> > >
> > > On 5/24/07, Jess Fisher < [EMAIL PROTECTED]> wrote:
> > > > I still cannot get all the portTypes generated even with Axis 1.2.
Any
> > > plans on fixing this ?
> > > >
> > > >
> > > > Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > Sorry to bother you again. Just want to know if this is a bug or I
did not
> > > set the parameter correctly. Any advice on how to make this work.
> > > >
> > > > Thanks,
> > > > -Bo
> > > >
> > > >
> > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > I attached the wsdls from the original email.
> > > > >
> > > > > Thanks,
> > > > > -Bo
> > > > >
> > > > >
> > > > >
> > > > > On 5/20/07, Amila Suriarachchi < [EMAIL PROTECTED] >
wrote:
> > > > > > Can you send your wsdl? do you have ports for each bining?
> > > > > > Actually code is generated per port.
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > >   Just wondering if this is still an issue in Axis2 1.2 or I
did not
> > > put the parameters properly.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > -Bo
> > > > > > >
> > > > > > > On 5/17/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > > Thanks, Amila. I tried your advice using no -pn and -sn. It
still
> > > only generated last one binding out of the 4. I used asix2 1.2
release.
> > > > > > > >
> > > > > > > > Here is the command line. Anything I did not do right?
Attached is
> > > the output files and wsdl files. Sorry for the 500k size.
> > > > > > > >
> > > > > > > > C:\programs\work>wsdl2java -o output -p com.xyz.nbi -t -ss
-sd -g
> > > -S src -R src -uri wsrp_service.wsdl
> > > > > > > > Using AXIS2_HOME:   C:\programs\axis2- 1.2
> > > > > > > > Using JAVA_HOME:C:\programs\jdk1.5.0_09
> > > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > > 'file:/C:/programs/work/'.
> > > > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative
to
> > > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > > > > > > > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> > > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > > > > > > > Retrieving schema at ' http://www.w3.org/2001/xml.xsd',
relative
> > > to 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > > 'file:/C:/programs/work/'.
> > > > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative
to
> > > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > > > > > > > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> > > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > > > > > > > Retrieving schema at ' http://www.w3.org/2001/xml.xsd',
relative
> > > to 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > > > > > > > May 17, 2007 11:55:31 AM
> > > org.apache.axis2.wsdl.codegen.writer.ClassWriter
> > > createOutFile
> > > > > > > > INFO: The
> > > output\src\com\xyz\nbi\InvalidHandleException.java
file
> > > cannot be overwritten.
> > > > > > > > May 17, 2007 11:55:31 AM
> > > org.apache.axis2.wsdl.codegen.wr

Re: [AXIS2] Weblogic 8.1 ClassLoader problem? - Additional Info

2007-06-22 Thread Mike Ferraro
Thank you for the response.  Yes, I've read through this documentation. 
Unfortunately, I believe that I've done everything that the documentation
instructs.  (See full email below.)

Any other ideas?

Thanks,
Mike

Quoting robert lazarski <[EMAIL PROTECTED]>:
> Try starting here:
>
> http://ws.apache.org/axis2/1_2/app_server.html
>
> HTH,
> Robert
>
> On 6/22/07, Mike Ferraro <[EMAIL PROTECTED]> wrote:
> >
> > I'd like to add that we have included Xerces 2.9.0 and Xalan 2.7.0 in the
> > underlying JDK endorsed directory because the latest versions of Xerces
> > and
> > Xalan are required for other non-related applications that are deployed
> > within
> > WebLogic.
> >
> > I have tried removing the Xerces and Xalan libraries from both Axis2 and
> > my
> > services, but then I get the exception below, which seems completely
> > strange to
> > me because it looks like the ConfigurationFactory from the Commons
> > Configuration
> > library in my services deployment is getting found but then the
> > Configuration
> > class is not.  This really seems like some sort of class loader issue, but
> > I
> > have no idea where to start.
> >
> > Mike
> >
> > Jun 21, 2007 8:03:32 PM
> >
> >
> org.apache.commons.configuration.ConfigurationFactory$FileConfigurationFactory
> > createObject
> > Jun 21, 2007 8:03:32 PM org.apache.commons.digester.Digester endElement
> > SEVERE: End event threw exception
> > java.lang.ClassNotFoundException:
> > org.apache.commons.configuration.Configuration
> > at
> > weblogic.utils.classloaders.GenericClassLoader.findClass(
> > GenericClassLoader.java:198)
> > at
> > weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(
> > ChangeAwareClassLoader.java:61)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> > at
> > weblogic.utils.classloaders.GenericClassLoader.loadClass(
> > GenericClassLoader.java:223)
> > at
> > weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(
> > ChangeAwareClassLoader.java:48)
> > at org.apache.commons.digester.SetNextRule.end(SetNextRule.java
> > :203)
> > at org.apache.commons.digester.Rule.end(Rule.java:230)
> > at org.apache.commons.digester.Digester.endElement(Digester.java
> > :1130)
> > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> > Source)
> > at
> > org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> > Source)
> > at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.apache.commons.digester.Digester.parse(Digester.java:1666)
> > at
> > org.apache.commons.configuration.ConfigurationFactory.getConfiguration(
> > ConfigurationFactory.java:165)
> > at edu.harvard.itis.util.ConfigurationManager.loadConfiguration
> > (Unknown
> > Source)
> > at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
> > at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
> > at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
> > at edu.harvard.cait.cdws.services.CDWSServiceLifeCycle.startUp
> > (Unknown
> > Source)
> > at
> > org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(
> > ServiceBuilder.java:454)
> > at
> > org.apache.axis2.deployment.ServiceBuilder.populateService(
> > ServiceBuilder.java:176)
> > at
> > org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(
> > ServiceGroupBuilder.java:98)
> > at
> >
> > org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup
> > (ArchiveReader.java:106)
> > at
> >
> >
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup
> > (ArchiveReader.java:140)
> > at
> > org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java
> > :79)
> > at
> > org.apache.axis2.deployment.DeploymentEngine.doDeploy(
> > DeploymentEngine.java:582)
> > at
> > org.apache.axis2.deployment.repository.util.WSInfoList.update(
> > WSInfoList.java:201)
> > at
> > org.apache.axis2.deployment.RepositoryListener.update(
> > RepositoryListener.java:271)
> > at
> > 

WSDL2Java for HTTPS

2007-06-22 Thread Mark Babcock
I am trying to generate stubs with the WSDL2Java tool

I imported my certificate into my keystore (cacerts) using 

The keytool.  

 

When I run my build file I get the following exception:

 

 [java] javax.net.ssl.SSLHandshakeException:
sun.security.validator.Validato

rException: PKIX path building failed:
sun.security.provider.certpath.SunCertPat

hBuilderException: unable to find valid certification path to requested
target

 



 







 



 

 







 



  













  

  https://URL/"/>

  

  



  

 

  



  Building xxx WSDL 2 Java\par



  



 

 



Re: docs for wss4j

2007-06-22 Thread Richard DeGrande
Thanks Chad.

>>> "Chad DeBauch" <[EMAIL PROTECTED]> 6/22/2007 7:11 AM >>>
This article is a great article

http://www.devx.com/Java/Article/28816 

Chad

On 6/22/07, José Ferreiro <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> You may visit this page:
>
> http://wso2.org/projects/wss4j 
>
> and then refer to the paragraph Links which refers to substantive
> information.
>
> Hope this helps
>
> José Ferreiro
> Jose
>
>
> On 6/21/07, Richard DeGrande <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I'm trying to write a WS client to a secure service using axis 1.4
and
> > wss4j.  I am having some difficulty finding information on the use
of
> > wss4j.  Does anyone know of any links that could help me out ?
> >
> > thanks in advance
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> >
> >
>
>
> --
> José Ferreiro
> EPFL Communication Systems engineer
> ing.sys.com.dipl.EPFL

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



Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for

2007-06-22 Thread Sagnwoo Kim

Ajith suggested multiple wsdl files for the solution of multiple ports. I
have a question for that. When you want to create client from the wsdl
files. with WSDL2Java and if you have multiple wsdl files for one service.
Then you have to create multiple clients as well for every ports? Even
though they are all under the same service?

Thanks
Sangwoo Kim

On 6/22/07, Bo Xie <[EMAIL PROTECTED]> wrote:


Hi Ajith,

  Thanks for the comments. Look forward to your explanation. Like to know
the difference between the workaround and the expected.

Thanks,
-Bo

On 6/13/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
>
> Hi,
> We will definitely look at the possibility of supporting this during
> the hackathon. I will perhaps explain in a separate mail what is the
> thinking behind starting from the port but it seems that we need to
> rethink this when it comes to skeletons.
>
> What I can suggest as a workaround is to generate code for each port
> with separate WSDL2Java calls (which will yield multiple skeletons).
> You can make this easy if you use the ant task
>
> Ajith
>
> On 6/13/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> > Hi Amila and all,
> >
> >   In case this is not working yet, can you suggest any alternative? I
> have a
> > few services that shared a lot of common data among them. I have to
> move all
> > the methods in all services into one mega service and change method
> name if
> > necessary to avoid conflicts. Mixing methods of different purpose into
> one
> > service looks messy.
> >
> >Appreciate any advice.
> >
> > -Bo
> >
> >
> > On 5/24/07, Jess Fisher <[EMAIL PROTECTED]> wrote:
> > > I still cannot get all the portTypes generated even with Axis 1.2.
> Any
> > plans on fixing this ?
> > >
> > >
> > > Bo Xie < [EMAIL PROTECTED]> wrote:
> > > Sorry to bother you again. Just want to know if this is a bug or I
> did not
> > set the parameter correctly. Any advice on how to make this work.
> > >
> > > Thanks,
> > > -Bo
> > >
> > >
> > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > I attached the wsdls from the original email.
> > > >
> > > > Thanks,
> > > > -Bo
> > > >
> > > >
> > > >
> > > > On 5/20/07, Amila Suriarachchi < [EMAIL PROTECTED] >
> wrote:
> > > > > Can you send your wsdl? do you have ports for each bining?
> > > > > Actually code is generated per port.
> > > > >
> > > > >
> > > > >
> > > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > >   Just wondering if this is still an issue in Axis2 1.2 or I
> did not
> > put the parameters properly.
> > > > > >
> > > > > > Thanks,
> > > > > > -Bo
> > > > > >
> > > > > > On 5/17/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > Thanks, Amila. I tried your advice using no -pn and -sn. It
> still
> > only generated last one binding out of the 4. I used asix2 1.2release.
> > > > > > >
> > > > > > > Here is the command line. Anything I did not do right?
> Attached is
> > the output files and wsdl files. Sorry for the 500k size.
> > > > > > >
> > > > > > > C:\programs\work>wsdl2java -o output -p com.xyz.nbi -t -ss
> -sd -g
> > -S src -R src -uri wsrp_service.wsdl
> > > > > > > Using AXIS2_HOME:   C:\programs\axis2- 1.2
> > > > > > > Using JAVA_HOME:C:\programs\jdk1.5.0_09
> > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > 'file:/C:/programs/work/'.
> > > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative
> to
> > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > > > > > > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > > > > > > Retrieving schema at ' http://www.w3.org/2001/xml.xsd',
> relative
> > to 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > 'file:/C:/programs/work/'.
> > > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative
> to
> > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > > > > > > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > > > > > > Retrieving schema at ' http://www.w3.org/2001/xml.xsd',
> relative
> > to 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > > > > > > May 17, 2007 11:55:31 AM
> > org.apache.axis2.wsdl.codegen.writer.ClassWriter
> > createOutFile
> > > > > > > INFO: The
> > output\src\com\xyz\nbi\InvalidHandleException.java file
> > cannot be overwritten.
> > > > > > > May 17, 2007 11:55:31 AM
> > org.apache.axis2.wsdl.codegen.writer.ClassWriter
> > createOutFile
> > > > > > > INFO: The
> > output\src\com\xyz\nbi\AccessDeniedException.java file
> > cannot be overwritten.
> > > > > > > May 17, 2007 11:55:31 AM
> > org.apache.axis2.wsdl.codegen.writer.ClassWriter
> > createOutFile
> > > > > > > INFO: The
> > output\src\com\xyz\nbi\InvalidRegistrationException.java
> > file cannot be overwritten.
> > > > > > > May 17, 2007 11:55:31 AM
> > org.apache.axis2.wsdl.codegen.writer.ClassWriter
> > createOutFile

multiple ports issue.

2007-06-22 Thread Sagnwoo Kim

Hi all, I am newbie at Axis2 and having some issue here

Now Im trying to generate skeleton files using WSDL2Java out of my wsdl
file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java
with the wsdl file it only generates skeleton file which has only one port.
This is something intended by the Axis2 developer team as far as I know. So
for the solution of that I can use "-pn" option which port I will chose. But
it doesn't work for me.

When I generate the skeleton file I use "java
org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s
-wv 1.2 -ss -sd -pn urn:my_service:I_Port". But this gives me skeleton file
which contains only methods defined under "S_Port". The S_Port is the
default port generated when I don't use "-pn" option. It seems like "-pn"
doesn't work. Can anyone address me how to solve this issue?

The following is the my_service.wsdl file I have.


http://schemas.xmlsoap.org/wsdl/";
   xmlns:api_binding="urn:api_binding"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
   targetNamespace="urn:my_service">

   

   

   
   http://localhost/axis2/services/urn:api:i"; />
   

   
   http://localhost/axis2/services/urn:api:s"; />
   

   
   http://localhost/axis2/services/urn:api:p"; />
   

   




Re: [AXIS2] Weblogic 8.1 ClassLoader problem? - Additional Info

2007-06-22 Thread robert lazarski

Try starting here:

http://ws.apache.org/axis2/1_2/app_server.html

HTH,
Robert

On 6/22/07, Mike Ferraro <[EMAIL PROTECTED]> wrote:


I'd like to add that we have included Xerces 2.9.0 and Xalan 2.7.0 in the
underlying JDK endorsed directory because the latest versions of Xerces
and
Xalan are required for other non-related applications that are deployed
within
WebLogic.

I have tried removing the Xerces and Xalan libraries from both Axis2 and
my
services, but then I get the exception below, which seems completely
strange to
me because it looks like the ConfigurationFactory from the Commons
Configuration
library in my services deployment is getting found but then the
Configuration
class is not.  This really seems like some sort of class loader issue, but
I
have no idea where to start.

Mike

Jun 21, 2007 8:03:32 PM

org.apache.commons.configuration.ConfigurationFactory$FileConfigurationFactory
createObject
Jun 21, 2007 8:03:32 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.ClassNotFoundException:
org.apache.commons.configuration.Configuration
at
weblogic.utils.classloaders.GenericClassLoader.findClass(
GenericClassLoader.java:198)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(
ChangeAwareClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(
GenericClassLoader.java:223)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(
ChangeAwareClassLoader.java:48)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java
:203)
at org.apache.commons.digester.Rule.end(Rule.java:230)
at org.apache.commons.digester.Digester.endElement(Digester.java
:1130)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.apache.commons.digester.Digester.parse(Digester.java:1666)
at
org.apache.commons.configuration.ConfigurationFactory.getConfiguration(
ConfigurationFactory.java:165)
at edu.harvard.itis.util.ConfigurationManager.loadConfiguration
(Unknown
Source)
at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
at edu.harvard.cait.cdws.services.CDWSServiceLifeCycle.startUp
(Unknown
Source)
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(
ServiceBuilder.java:454)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(
ServiceBuilder.java:176)
at
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(
ServiceGroupBuilder.java:98)
at

org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup
(ArchiveReader.java:106)
at

org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup
(ArchiveReader.java:140)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java
:79)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(
DeploymentEngine.java:582)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(
WSInfoList.java:201)
at
org.apache.axis2.deployment.RepositoryListener.update(
RepositoryListener.java:271)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(
RepositoryListener.java:189)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(
DeploymentEngine.java:110)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(
WarBasedAxisConfigurator.java:257)
at

org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:74)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(
AxisServlet.java:486)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:406)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(
ServletStubImpl.java:993)
at
weblogic.security.acl.intern

Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for

2007-06-22 Thread Bo Xie

Hi Ajith,

 Thanks for the comments. Look forward to your explanation. Like to know
the difference between the workaround and the expected.

Thanks,
-Bo

On 6/13/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:


Hi,
We will definitely look at the possibility of supporting this during
the hackathon. I will perhaps explain in a separate mail what is the
thinking behind starting from the port but it seems that we need to
rethink this when it comes to skeletons.

What I can suggest as a workaround is to generate code for each port
with separate WSDL2Java calls (which will yield multiple skeletons).
You can make this easy if you use the ant task

Ajith

On 6/13/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> Hi Amila and all,
>
>   In case this is not working yet, can you suggest any alternative? I
have a
> few services that shared a lot of common data among them. I have to move
all
> the methods in all services into one mega service and change method name
if
> necessary to avoid conflicts. Mixing methods of different purpose into
one
> service looks messy.
>
>Appreciate any advice.
>
> -Bo
>
>
> On 5/24/07, Jess Fisher <[EMAIL PROTECTED]> wrote:
> > I still cannot get all the portTypes generated even with Axis 1.2. Any
> plans on fixing this ?
> >
> >
> > Bo Xie < [EMAIL PROTECTED]> wrote:
> > Sorry to bother you again. Just want to know if this is a bug or I did
not
> set the parameter correctly. Any advice on how to make this work.
> >
> > Thanks,
> > -Bo
> >
> >
> > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > I attached the wsdls from the original email.
> > >
> > > Thanks,
> > > -Bo
> > >
> > >
> > >
> > > On 5/20/07, Amila Suriarachchi < [EMAIL PROTECTED] >
wrote:
> > > > Can you send your wsdl? do you have ports for each bining?
> > > > Actually code is generated per port.
> > > >
> > > >
> > > >
> > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > >
> > > > >   Just wondering if this is still an issue in Axis2 1.2 or I did
not
> put the parameters properly.
> > > > >
> > > > > Thanks,
> > > > > -Bo
> > > > >
> > > > > On 5/17/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > Thanks, Amila. I tried your advice using no -pn and -sn. It
still
> only generated last one binding out of the 4. I used asix2 1.2 release.
> > > > > >
> > > > > > Here is the command line. Anything I did not do right?
Attached is
> the output files and wsdl files. Sorry for the 500k size.
> > > > > >
> > > > > > C:\programs\work>wsdl2java -o output -p com.xyz.nbi -t -ss -sd
-g
> -S src -R src -uri wsrp_service.wsdl
> > > > > > Using AXIS2_HOME:   C:\programs\axis2-1.2
> > > > > > Using JAVA_HOME:C:\programs\jdk1.5.0_09
> > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> 'file:/C:/programs/work/'.
> > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to
> 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > > > > > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > > > > > Retrieving schema at ' http://www.w3.org/2001/xml.xsd',
relative
> to 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> 'file:/C:/programs/work/'.
> > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to
> 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > > > > > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > > > > > Retrieving schema at ' http://www.w3.org/2001/xml.xsd',
relative
> to 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > > > > > May 17, 2007 11:55:31 AM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > > > > > INFO: The
> output\src\com\xyz\nbi\InvalidHandleException.java file
> cannot be overwritten.
> > > > > > May 17, 2007 11:55:31 AM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > > > > > INFO: The
> output\src\com\xyz\nbi\AccessDeniedException.java file
> cannot be overwritten.
> > > > > > May 17, 2007 11:55:31 AM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > > > > > INFO: The
> output\src\com\xyz\nbi\InvalidRegistrationException.java
> file cannot be overwritten.
> > > > > > May 17, 2007 11:55:31 AM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > > > > > INFO: The
> output\src\com\xyz\nbi\MissingParametersException.java file
> cannot be overwritten.
> > > > > > May 17, 2007 11:55:31 AM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > > > > > INFO: The
> output\src\com\xyz\nbi\InvalidUserCategoryException.java
> file cannot be overwritten.
> > > > > > May 17, 2007 11:55:31 AM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > > > > > INFO: The
> output\src\com\xyz\nbi\OperationFailedException.java file
> cannot be overwritten.
> > > > > > May 17, 2007 11:55:31 AM
> org.apache.axis2.wsdl.codegen.writer.ClassWriter
> createOutFile
> > > > > > 

Re: [AXIS2] Weblogic 8.1 ClassLoader problem? - Additional Info

2007-06-22 Thread Mike Ferraro
I'd like to add that we have included Xerces 2.9.0 and Xalan 2.7.0 in the
underlying JDK endorsed directory because the latest versions of Xerces and
Xalan are required for other non-related applications that are deployed within
WebLogic.

I have tried removing the Xerces and Xalan libraries from both Axis2 and my
services, but then I get the exception below, which seems completely strange to
me because it looks like the ConfigurationFactory from the Commons Configuration
library in my services deployment is getting found but then the Configuration
class is not.  This really seems like some sort of class loader issue, but I
have no idea where to start.

Mike

Jun 21, 2007 8:03:32 PM
org.apache.commons.configuration.ConfigurationFactory$FileConfigurationFactory
createObject
Jun 21, 2007 8:03:32 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.ClassNotFoundException: org.apache.commons.configuration.Configuration
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:198)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:48)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:203)
at org.apache.commons.digester.Rule.end(Rule.java:230)
at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.apache.commons.digester.Digester.parse(Digester.java:1666)
at
org.apache.commons.configuration.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:165)
at edu.harvard.itis.util.ConfigurationManager.loadConfiguration(Unknown
Source)
at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
at edu.harvard.itis.util.ConfigurationManager.load(Unknown Source)
at edu.harvard.cait.cdws.services.CDWSServiceLifeCycle.startUp(Unknown
Source)
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:454)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:176)
at
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:98)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:106)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:140)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:79)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:582)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:201)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:271)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:189)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:110)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:257)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:486)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:406)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.ser

[Axis2] Service Settings, DB connection

2007-06-22 Thread Oliver Hirschi

Hi there,

I have to implement several webservice with DB connections to a
mysql-database. Now I have two questions about the implementing of
that:

1. Where should I store the db-connection parameters. Now I have
integrated it to service.xml! It works fine, but if I make the
deployment of the services I generate an ".aar" file which includes
also the service.xml. This implicates, that by updating the service on
a server, the service.xml is also overwritten, it means the
customer-settings (like db connection parameters, etc.) are lost and
have to set again.
Is there a better place to store such settings?

2. I connect to db in the startUp method of an additional service-class
implementing the ServiceLifeCycle interface and stores it to a
service-parameter (the disconnecting is made in the shutDown method).
So from the serveral service-methods I can acces the db-connection
object over the servicecontext. It runs well.
Now, my question is, was happens, if there comes several requests to
services wich used the db-connection from different clients at the same
time? I think there is only one db-connection object instance, so there
can occur access violations, isn't it?

Many thanks & Regards,
--
Oliver Hirschi
http://www.FamilyHirschi.ch 




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



Re: [Beginner] Deserializing array between Java and C#

2007-06-22 Thread Pasquale Imbemba

I added Serialziable imports and implements to both classes.
Still got "org.xml.sax.SAXException: Deserializing parameter 'a':  could not
find deserializer for type {http://DefaultNamespace}Address";

Bye
p

On 22/06/07, Raghupathy, Gurumoorthy <[EMAIL PROTECTED]>
wrote:


 All of your JWS classes should be "serializable"



Try that and let me know


 --

*From:* Pasquale Imbemba [mailto:[EMAIL PROTECTED]
*Sent:* 22 June 2007 14:22
*To:* axis-user@ws.apache.org
*Subject:* [Beginner] Deserializing array between Java and C#



Hello,

I am new to AXIS but quite enthusiast from what I've seen so far. I run it
on a Tomcat server. For now I am testing deployment with JWS.
I have two classes for testing purposes, one Address.java and Person.java. 
Address has just five fields (street, town, zip, phone, and nation).
Person.java contains, among name and surname, also an array of Address.
What I did was: compiled the Address.java and place the Address.class into
the \WEB-INF\classes folder. I placed the Person.jws into the
\webapps\axis folder. I add a webreference to a C# project. I create a new
Address and a new Person and set the Person's address. Complier is happy,
but at runtime, I get a the following error (a being the name of the Address
array variable) "Message=" org.xml.sax.SAXException: Deserializing
parameter 'a':  could not find deserializer for type {
http://DefaultNamespace}Address "".

What do I need to do in order to correct this?

Thanks in advance
Pasquale

I enclose the WSDL file (sorry for the noise):
http://localhost:8080/axis/Person.jws
">
-

-

-
http://DefaultNamespace";>
http://localhost:8080/axis/Person.jws"/>
http://schemas.xmlsoap.org/soap/encoding/"/>
-

-








-

-









-
http://localhost:8080/axis/Person.jws";>
http://DefaultNamespace"/>
http://schemas.xmlsoap.org/soap/encoding/"/>
-

-

-







-





   
-



-






   


   
-





   
-



-



-





   


   
-



-



-





   
-





   


   
-

-




-




-




-




-




-




-




-




-




-





-

http://schemas.xmlsoap.org/soap/http
"/>
-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws " use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace=" http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>



-

-

http://localhost:8080/axis/Person.jws"/>






RE: [Beginner] Deserializing array between Java and C#

2007-06-22 Thread Raghupathy, Gurumoorthy
All of your JWS classes should be "serializable" 

 

Try that and let me know 

 



From: Pasquale Imbemba [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2007 14:22
To: axis-user@ws.apache.org
Subject: [Beginner] Deserializing array between Java and C#

 

Hello,

I am new to AXIS but quite enthusiast from what I've seen so far. I run
it on a Tomcat server. For now I am testing deployment with JWS.
I have two classes for testing purposes, one Address.java and
Person.java . Address has just five fields (street, town, zip, phone,
and nation). Person.java contains, among name and surname, also an array
of Address.
What I did was: compiled the Address.java and place the Address.class
into the \WEB-INF\classes folder. I placed the Person.jws into the
\webapps\axis folder. I add a webreference to a C# project. I create a
new Address and a new Person and set the Person's address. Complier is
happy, but at runtime, I get a the following error (a being the name of
the Address array variable) "Message=" org.xml.sax.SAXException:
Deserializing parameter 'a':  could not find deserializer for type
{http://DefaultNamespace}Address  "".

What do I need to do in order to correct this? 

Thanks in advance
Pasquale

I enclose the WSDL file (sorry for the noise):
http://localhost:8080/axis/Person.jws
">
-

-

-
http://DefaultNamespace
 ">
http://localhost:8080/axis/Person.jws"/>
http://schemas.xmlsoap.org/soap/encoding/
 "/>
-

-

 


 



-

-
 


 



 

-
http://localhost:8080/axis/Person.jws";>
http://DefaultNamespace 
"/>
http://schemas.xmlsoap.org/soap/encoding/"/>
-
 
-

-







-

 



   
-

 

-


 



   


   
-





   
-



-
 


-

 



   


   
-
 


-

 

-



 

   
-



 

   


   
-

-
 


 
-


 

-


 

-




-

 


-

 


-
 

 

-

 


-

 


-
 


 

-

http://schemas.xmlsoap.org/soap/http
 "/>
-


-
 
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
 

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/> 


-


-
 
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
 

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/> 


-


-
 
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
 

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws " use="encoded"/>


-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace=" http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/> 


-


-
 
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
 

-

http://schemas.xmlsoap.org/soap/encoding/
" namespace="http://DefaultNamespace"; use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/> 


-


-
 
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace " use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/
 "
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>

 

-

-

http://localhost:8080/axis/Person.jws"/>






Re: NoSuchMethodError error while engagin rampart

2007-06-22 Thread Chad DeBauch

I have not used the Eclipse plugin, I would try looking at the axis.jar I am
guessing it is an older version and you need to remove it.  Some where there
is code trying to call a method that does not exist.  I would start from
scratch and get the Axis2.war working first in Tomcat with no service, then
try to include Rampart.  Then try adding a service.

Chad

On 6/22/07, Evandro P. Contato <[EMAIL PROTECTED]> wrote:


 Chad

I use Eclipse plugin for generator client class, in debugging the error
occurs in code next


// create a message context

org.apache.axis2.context.MessageContext _messageContext =
*new* org.apache.axis2.context.MessageContext();

 // create SOAP envelope with that payload

org.apache.axiom.soap.SOAPEnvelope env =
*null*;

 env = toEnvelope(*getFactory*
(_operationClient.getOptions().getSoapVersionURI()),testeTexto6,optimizeContent(
*new* javax.xml.namespace.QName("","testeTexto")));

//adding SOAP soap_headers

_serviceClient.addHeadersToEnvelope(env);

// set the message context with that soap envelope

_messageContext.setEnvelope(env);

// add the message contxt to the operation client

_operationClient.addMessageContext(_messageContext);

//execute the operation client

_operationClient.execute(*true*);

Some idea ?:)


thanks for helping me

Evandro


- Original Message -
*From:* Chad DeBauch <[EMAIL PROTECTED]>
*To:* [EMAIL PROTECTED] ; axis-user@ws.apache.org
*Sent:* Thursday, June 21, 2007 10:36 PM
*Subject:* Re: NoSuchMethodError error while engagin rampart

Some code that is executing is calling the method isEngaged(QName) but
with the latest release of Axis2 if you look at the java docs the only
isEngaged method accepts a String.  Make sure you don't have any code that
calls the method isEngaged(QName) and that you are using the latest 1.2jars of 
both Rampart and Axis2.  You also might want to check that you don't
have duplicate jars, that is an older version is loaded before your newer
version jar.

Chad

On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi Chad,
>
>
> I made download of the archive however still the error occurs
> java.lang.NoSuchMethodError:
> org.apache.axis2.context.MessageContext.isEngaged
> (Ljavax/xml/namespace/QName;)Z
>
> some idea of as I can decide?
>
> Link download
> http://www.apache.org/dist/ws/rampart/1_2/
>
> thanks,
>
> Evandro P. Contato
> Curitiba - Paraná - Brasil
>
>
> Chad DeBauch wrote:
> >
> > You need to be using rampart-1.2.mar with axis2-1.2.
> >
> > Chad
> >
> > On 6/19/07, Shantaram Nadkarni <[EMAIL PROTECTED]> wrote:
> >>
> >>  Hi
> >>
> >>
> >>
> >>   I am trying to engage rampart module. I get the following error
> >>
> >>
> >>
> >> org.apache.axis2.AxisFault: java.lang.NoSuchMethodError : boolean
> >> org.apache.axis2.context.MessageContext.isEngaged(
> javax.xml.namespace.QN
> >>
> >> ame)
> >>
> >> at
> >>
> >> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext (
> Utils.java
> >>
> >> :434)
> >>
> >> at
> >>
> >> org.apache.axis2.description.OutInAxisOperationClient.send
> (OutInAxisOper
> >>
> >> ation.java:373)
> >>
> >> at
> >>
> >> org.apache.axis2.description.OutInAxisOperationClient.execute
> (OutInAxisO
> >>
> >> peration.java:294)
> >>
> >>
> >>
> >> I am using rampart-1.1.mar and axis2-1.2
> >>
> >>
> >>
> >> I have included the module in the service.xml as well as axis2.xml
> >>
> >>
> >>
> >> Please advice.
> >>
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >> Shantaram
> >>
> >>
> >>
> >
> >
> Quoted from:
>
> 
http://www.nabble.com/NoSuchMethodError-error-while-engagin-rampart-tf3947792.html#a11200135
>
>



[Beginner] Deserializing array between Java and C#

2007-06-22 Thread Pasquale Imbemba

Hello,

I am new to AXIS but quite enthusiast from what I've seen so far. I run it
on a Tomcat server. For now I am testing deployment with JWS.
I have two classes for testing purposes, one Address.java and Person.java.
Address has just five fields (street, town, zip, phone, and nation).
Person.java contains, among name and surname, also an array of Address.
What I did was: compiled the Address.java and place the Address.class into
the \WEB-INF\classes folder. I placed the Person.jws into the \webapps\axis
folder. I add a webreference to a C# project. I create a new Address and a
new Person and set the Person's address. Complier is happy, but at runtime,
I get a the following error (a being the name of the Address array variable)
"Message="org.xml.sax.SAXException: Deserializing parameter 'a':  could not
find deserializer for type {http://DefaultNamespace}Address"";.

What do I need to do in order to correct this?

Thanks in advance
Pasquale

I enclose the WSDL file (sorry for the noise):
http://localhost:8080/axis/Person.jws";>
-
   
-
   
-
   http://DefaultNamespace";>
http://localhost:8080/axis/Person.jws"/>
http://schemas.xmlsoap.org/soap/encoding/"/>
-
   
-
   







-
   
-
   








-
   http://localhost:8080/axis/Person.jws";>
http://DefaultNamespace"/>
http://schemas.xmlsoap.org/soap/encoding/"/>
-
   
-
   
-
   






-
   




  
-
   


-
   





  


  
-
   




  
-
   


-
   


-
   




  


  
-
   


-
   


-
   




  
-
   




  


  
-
   
-
   



-
   



-
   



-
   



-
   



-
   



-
   



-
   



-
   



-
   




-
   
http://schemas.xmlsoap.org/soap/http"/>
-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>


-
   

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://DefaultNamespace"; use="encoded"/>

-
   
http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/Person.jws"; use="encoded"/>



-
   
-
   
http://localhost:8080/axis/Person.jws"/>





Re: docs for wss4j

2007-06-22 Thread Chad DeBauch

This article is a great article

http://www.devx.com/Java/Article/28816

Chad

On 6/22/07, José Ferreiro <[EMAIL PROTECTED]> wrote:


Hello,

You may visit this page:

http://wso2.org/projects/wss4j

and then refer to the paragraph Links which refers to substantive
information.

Hope this helps

José Ferreiro
Jose


On 6/21/07, Richard DeGrande <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm trying to write a WS client to a secure service using axis 1.4 and
> wss4j.  I am having some difficulty finding information on the use of
> wss4j.  Does anyone know of any links that could help me out ?
>
> thanks in advance
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
José Ferreiro
EPFL Communication Systems engineer
ing.sys.com.dipl.EPFL


Re: NoSuchMethodError error while engagin rampart

2007-06-22 Thread Chad DeBauch

I would take a look at the axis.jar.  I am guessing that is an older
version.

Chad

On 6/22/07, Evandro P. Contato <[EMAIL PROTECTED]> wrote:


 Hi


I am using addressing-1.2, rampart-1.2, Axis2-1.2, the problem occurs when
use   in axis2.xml :(

In attachment list files of my lib

some idea?

thanks,

Evandro


- Original Message -
*From:* Anthony Bull <[EMAIL PROTECTED]>
*To:* axis-user@ws.apache.org
*Cc:* [EMAIL PROTECTED]
*Sent:* Thursday, June 21, 2007 10:56 PM
*Subject:* Re: NoSuchMethodError error while engagin rampart

I just had this same problem while engaging the addressing module.

The issue was I was using Axis 1.2 and the Addressing 1.0 module.
Upgraded the addressing to 1.2 and it fixed it.

Chad DeBauch wrote:

Some code that is executing is calling the method isEngaged(QName) but
with the latest release of Axis2 if you look at the java docs the only
isEngaged method accepts a String.  Make sure you don't have any code that
calls the method isEngaged(QName) and that you are using the latest 1.2jars of 
both Rampart and Axis2.  You also might want to check that you don't
have duplicate jars, that is an older version is loaded before your newer
version jar.

Chad

On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi Chad,
>
>
> I made download of the archive however still the error occurs
> java.lang.NoSuchMethodError:
> org.apache.axis2.context.MessageContext.isEngaged
> (Ljavax/xml/namespace/QName;)Z
>
> some idea of as I can decide?
>
> Link download
> http://www.apache.org/dist/ws/rampart/1_2/
>
> thanks,
>
> Evandro P. Contato
> Curitiba - Paraná - Brasil
>
>
> Chad DeBauch wrote:
> >
> > You need to be using rampart-1.2.mar with axis2-1.2.
> >
> > Chad
> >
> > On 6/19/07, Shantaram Nadkarni <[EMAIL PROTECTED]> wrote:
> >>
> >>  Hi
> >>
> >>
> >>
> >>   I am trying to engage rampart module. I get the following error
> >>
> >>
> >>
> >> org.apache.axis2.AxisFault: java.lang.NoSuchMethodError : boolean
> >> org.apache.axis2.context.MessageContext.isEngaged(
> javax.xml.namespace.QN
> >>
> >> ame)
> >>
> >> at
> >>
> >> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext (
> Utils.java
> >>
> >> :434)
> >>
> >> at
> >>
> >> org.apache.axis2.description.OutInAxisOperationClient.send
> (OutInAxisOper
> >>
> >> ation.java:373)
> >>
> >> at
> >>
> >> org.apache.axis2.description.OutInAxisOperationClient.execute
> (OutInAxisO
> >>
> >> peration.java:294)
> >>
> >>
> >>
> >> I am using rampart-1.1.mar and axis2-1.2
> >>
> >>
> >>
> >> I have included the module in the service.xml as well as axis2.xml
> >>
> >>
> >>
> >> Please advice.
> >>
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >> Shantaram
> >>
> >>
> >>
> >
> >
> Quoted from:
>
> 
http://www.nabble.com/NoSuchMethodError-error-while-engagin-rampart-tf3947792.html#a11200135
>
>


--
Anthony
-
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand

[EMAIL PROTECTED]
Ph  +64 4 472 8818
Fax +64 4 472 8811
Mobile 021 303 692
-
www.bcsoft.co.nz
---
This email may contain confidential or privileged information,
and is intended for use only by the addressee, or addressees.
If you are not the intended recipient please advise the sender
immediately and do not copy, use or disclose the contents to
any other person or organisation.
Black Coffee Software Ltd accepts no responsibility for viruses
received with this email, or to any changes made to the original
content. Any views or opinions expressed in this email may be
personal to the sender and are not necessarily those of Black
Coffee Software Ltd.
---





Re: [Axis2] wsdl2java code generation errors with jaxb and soap header

2007-06-22 Thread Bill Taylor

Can you tell me where you found the documentation on how to modify the
generated Java code?  I am having trouble figuring out how the generated
Java code works.  Thanks.

Bill Taylor

On 6/21/07, andreas netter <[EMAIL PROTECTED]> wrote:


Hi,
has nobody a comment on this?
i think it is no good idea to fix errors in the generated code manually.

greets,
andi

[EMAIL PROTECTED] schrieb:
> Hello,
>
> I generate client code out of a wsdl with axis2 (v. 1.2) wsdl2java and
jaxbri(v. 2.0.2) databinding.
> the wsdl not only defines request and reply messages but also the header
element of the soap message.
>
> i have the following problems with the generated code:
> 1) The generated code for the client stub doesn't compile because of a
parameter error in the "toOM"-Method for the Header.
> 2) When i fix the error, the invocation of "toOM" fails because of
incorrect/ missing values when creating the OMElement for the Header
> 3) When i fix this error too by filling in the correct values for the
HeaderType, the client code works.
>
> I think the wsdl is correct because generated code with adb binding out
of this wsdl works fine.
>
> It seems that axis2 code generation doesn't generate correct code with
jaxb binding when you have defined a soap header in the wsdl.
> Does someone have a similiar problem (or fixed it)?
>
> greetings from sunny munich :)
> andi
>
> some code snippets from the generated stub:
>
> "toOM"-Method call. "mMS150_Display0" represents the request data type,
"mws1" the header data type.
> 1)--
> **snip**
> env = toEnvelope(getFactory(
>   _operationClient.getOptions().getSoapVersionURI()),
>   mMS150_Display0,
>   optimizeContent(new javax.xml.namespace.QName("",
"MMS150_Display")));
> env.build();
> // add the children only if the parameter is not null
> if (mws1!=null){
>   env.getHeader().addChild(
>   toOM(mws1, optimizeContent(new javax.xml.namespace.QName("",
"MMS150_Display";
> }
> **snap**
>
> "toOM"-Method for the header:
> 2)--
> **snip**
> private org.apache.axiom.om.OMElement toOM(
net.company.mws.mws2.HeaderType param, 
org.apache.axiom.soap.SOAPFactoryfactory, boolean optimizeContent) {
> try {
> javax.xml.bind.JAXBContext context =
net_company_mws_mws2_HeaderType;
> javax.xml.bind.Marshaller marshaller = context.createMarshaller
();
> marshaller.setProperty(javax.xml.bind.Marshaller.JAXB_FRAGMENT,
Boolean.TRUE);
>
> JaxbRIDataSource source = new JaxbRIDataSource(
net.company.mws.mws2.HeaderType.class,
> param,
> marshaller,
> "",
> "");
> org.apache.axiom.om.OMNamespace namespace =
factory.createOMNamespace("",
>null);
> return factory.createOMElement(source, "", namespace);
> } catch (javax.xml.bind.JAXBException bex){
> throw new RuntimeException(bex);
> }
> }
>
> **snap**
>
> the call of the "toOM"-Method (with Parameters HeaderType, boolean)
doesn't fit with the signature of the toOm-Method (HeaderType, SOAPFactory,
boolean)
> i can correct this error by adding
"getFactory(_operationClient.getOptions().getSoapVersionURI())" to the
toOM-Method call in the generated stub.
> then i run into the second error i mentioned above.
>
> The following code snippet shows the correct values for in the
"toOM"-Method:
> 3)--
> **snip**
> JaxbRIDataSource source = new JaxbRIDataSource(
net.company.mws.mws2.HeaderType.class,
> param,
> marshaller,
> "
http://mws.company.net/mws2";,
> "mws");
> org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace
("",
>null);
> return factory.createOMElement(source, "mws", namespace);
> **snap**
>
> the wsdl:
> --
> **snip**
> 
> http://schemas.xmlsoap.org/wsdl/";
>   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>   xmlns:mws="http://mws.company.net/mws2";
>   xmlns:tns="http://schemas.company.com/KKTEST2";
>   xmlns:mms150_display="
http://schemas.company.com/KKTEST2/MMS150_Display";
>   name="KKTEST2" targetNamespace="http://schemas.company.com/KKTEST2
">
>   
> http://www.w3.org/2001/XMLSchema";
targetNamespace="http://schemas.company.com/KKTEST2/MMS150_Display";
elementFormDefault="qualified">
>   
>   
> 
>   
> 
>   
>   
> 
>   
> 
>   
>

Re: Transport out is not set

2007-06-22 Thread Dimuthu
Hi Balaji,

Try setting the end point address in Options. Then set the options into
ServiceClient object as follows.

Options options = new Options();
options.setTo(new EndpointReference("epr of service"));
client.setOptions(options);

Cheers,
Dimuthu

On Fri, 2007-06-22 at 17:09 +0800, Iyer, Balaji wrote:
> Has anyone in the dlist encountered an error as  "Transport out is not
> set". I am trying the nightly build of Axis2
> 
> 
> 
> rgds
> 
> Balaji
> 
> >___
> 
> Applications Framework & Infrastructure | International Technology
> Organization(ITO) | Tel : +65 63283504 |  email:
> [EMAIL PROTECTED] 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Transport out is not set

2007-06-22 Thread Michele Mazzucco
Balaji,

try to check against the old posts [1]. This issue has been discusses
several time.

Michele

[1] http://www.nabble.com/Axis---User-f232.html

On Fri, 2007-06-22 at 17:09 +0800, Iyer, Balaji wrote:
> Has anyone in the dlist encountered an error as  "Transport out is not
> set". I am trying the nightly build of Axis2
> 
> 
> 
> rgds
> 
> Balaji
> 
> >___
> 
> Applications Framework & Infrastructure | International Technology
> Organization(ITO) | Tel : +65 63283504 |  email:
> [EMAIL PROTECTED] 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Axis2 migrating from Axis1 for WSRP

2007-06-22 Thread Alexey Zavizionov

I found
https://issues.apache.org/jira/browse/AXIS2-1435
that fix doesn't approved

-pn option only works with axis2 1.1,
with axis2 1.2 doesn't work, why?

On 6/21/07, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:

I don't know if it's a bug or a feature but for multi-port services it
seems to generate only the first port. If you are using Axis2 1.2 try
to put one service per port and then generate the code. You should get
some other skeleton classes to fill.

On 6/21/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:
> Thanks,
>
> I have seen that migration manifest before send mail.
> I tried to use xmlbeans databinding. It generates lots of files, and
> same as I send
> in "wsdl"
> WSRPServiceMessageReceiverInOut.java
> WSRPServiceSkeleton.java
> WSRPServiceSkeletonInterface.java
> WSRPServiceStub.java
> :(
>
> BTW, WSRPServiceSkeleton class has only methods which described in
> WSRP_v1_PortletManagement_PortType. Looks like he generates one of
> four intefaces. Does it a bug?
>
> Regards,
> Alexey
>
> On 6/21/07, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:
> > Do not use ADB to implement WS-* specifications since they usually use
> > very complex schemas and ADB doesn't have good support for complex
> > schemas. Consider using XmlBeans while ADB matures.
> > Axis2 uses a completely different service implementation schema. In
> > that case,  you have to implement your service completing the
> > WSRPServiceSkeleton.java class that must have one operation per
> > service operation provided in the WSDL.
> >
> > Read this for details about migration from Axis1 to Axis2:
> >
> > http://ws.apache.org/axis2/1_2/migration.html
> >
> > On 6/21/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:
> > > I'm new to axis2
> > >
> > > We are migrating from Axis1 to Axis2.
> > >
> > > I have problems with generation WSDL2Code for wsdl file
> > > 
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl
> > > which import bindings from
> > > 
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_v1_bindings.wsdl
> > > which import interfaces from
> > > 
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_v1_interfaces.wsdl
> > >
> > > Command line arguments " -s -ss -sd -ssi -g -d adb -t -p org.wsdl -uri
> > > wsrp_service.wsdl
> > > -o ${src.gen.dir}
> > > -ns2p urn:oasis:names:tc:wsrp:v1:intf=org.intf,
> > > urn:oasis:names:tc:wsrp:v1:types=org.type,
> > > urn:oasis:names:tc:wsrp:v1:bind=org.bind,
> > > urn:oasis:names:tc:wsrp:v1:wsdl=org.wsdl"
> > >
> > > While using axis1 we have got files:
> > >  in the generated dir "bind"
> > > WSRP_v1_Markup_Binding_SOAPStub.java
> > > WSRP_v1_PortletManagement_Binding_SOAPStub.java
> > > WSRP_v1_Registration_Binding_SOAPStub.java
> > > WSRP_v1_ServiceDescription_Binding_SOAPStub.java
> > >
> > >  in the generated dir "intf"
> > > WSRP_v1_Markup_PortType.java
> > > WSRP_v1_PortletManagement_PortType.java
> > > WSRP_v1_Registration_PortType.java
> > > WSRP_v1_ServiceDescription_PortType.java
> > >
> > > But, now we have
> > > in "intf"
> > > ExtensionMapper.java
> > > in "wsdl"
> > > WSRPServiceMessageReceiverInOut.java
> > > WSRPServiceSkeleton.java
> > > WSRPServiceSkeletonInterface.java
> > > WSRPServiceStub.java
> > >
> > > Does axis2 correct generate source?
> > >
> > > I'm really want to use axis2 for wsrp
> > >
> > > Thanks in advance
> > > Alexey
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Saludos.
> > José Antonio Sánchez
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Saludos.
José Antonio Sánchez

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




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



Transport out is not set

2007-06-22 Thread Iyer, Balaji
Has anyone in the dlist encountered an error as  "Transport out is not
set". I am trying the nightly build of Axis2



rgds

Balaji

>___

Applications Framework & Infrastructure | International Technology
Organization(ITO) | Tel : +65 63283504 |  email:
[EMAIL PROTECTED] 


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



Re: WSDL2Java Multiple port names to be code generated.

2007-06-22 Thread Alexey Zavizionov

Even if I chose port name by -pn, it doesn't make affect. Does it bug?


On 6/22/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:

Hello,

Lest look at http://ws.apache.org/axis2/tools/1_2/CodegenToolReference.html
to see:
-pn  --port-name 
Specifies the port name to be code generated. If the port name is not
specified, then the first port (of the selected service) will be
picked.

Does this mean I CAN'T generate sources for all ports at the same time?


For generation I use wsdl file
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl

Regards,
Alexey



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



Re: persistant TCP connection?

2007-06-22 Thread Michele Mazzucco
Zhu,

you have to use a custom configuration context.


Michele


On Fri, 2007-06-22 at 11:39 +0800, Zhu Zhong wrote:
> I sniffered my HelloWorld Axis program and found that
> each time you call invoke() a TCP connection will be
> established and then closed.
> 
> Is there any way to use a persistance TCP connection
> for all the soap transactions within one session. Or
> that is the way RPC style should be?
> 
> Thanks.
> 
> 
>   ___ 
> 抢注雅虎免费邮箱3.5G容量,20M附件! 
> http://cn.mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: [AXIS2]: How to have a client tunnel through a proxy server

2007-06-22 Thread Michele Mazzucco
Valerie,

if you use Axis2 set up your settings in a ProxyProperties object:

ProxyProperties proxy = new ProxyProperties();
// your settings here

Options options = new Options();
options.setProperty(HTTPConstants.PROXY, proxy);


Michele

On Thu, 2007-06-21 at 15:27 -0400, Masin, Valerie wrote:
> We need to do firewall tunneling via a proxy server. This means we
> need to tell the client what the proxy address is, in addition to the
> actual server endpoint. We can't set it on the jvm because we need to
> change it dynamically at runtime.
> Does anyone know how to do this using Axis?
> Thanks, Valerie


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



WSDL2Java Multiple port names to be code generated.

2007-06-22 Thread Alexey Zavizionov

Hello,

Lest look at http://ws.apache.org/axis2/tools/1_2/CodegenToolReference.html
to see:
-pn--port-name
Specifies the port name to be code generated. If the port name is not
specified, then the first port (of the selected service) will be
picked.

Does this mean I CAN'T generate sources for all ports at the same time?


For generation I use wsdl file
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl

Regards,
Alexey

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



Re: docs for wss4j

2007-06-22 Thread José Ferreiro

Hello,

You may visit this page:

http://wso2.org/projects/wss4j

and then refer to the paragraph Links which refers to substantive
information.

Hope this helps

José Ferreiro
Jose


On 6/21/07, Richard DeGrande <[EMAIL PROTECTED]> wrote:


Hi

I'm trying to write a WS client to a secure service using axis 1.4 and
wss4j.  I am having some difficulty finding information on the use of
wss4j.  Does anyone know of any links that could help me out ?

thanks in advance


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





--
José Ferreiro
EPFL Communication Systems engineer
ing.sys.com.dipl.EPFL


Implementation of S23 Event notification

2007-06-22 Thread VijayAricent

Hi all
   Can anybody tell me does Axis2 support the implementation of S23 Event
notification
http://www.w3.org/TR/2003/NOTE-xmlp-scenarios-20030730
http://www.w3.org/TR/2003/NOTE-xmlp-scenarios-20030730 

Thanks
Vijay 
-- 
View this message in context: 
http://www.nabble.com/Implementation-of-S23-Event-notification-tf3963190.html#a11247448
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: axis2 command ns2p

2007-06-22 Thread Alexey Zavizionov

In axis1 it was:
   -N, --NStoPkg =
   mapping of namespace to package
   (now: -ns2p in axis2)
   -f, --fileNStoPkg 
   file of NStoPkg mappings (default NStoPkg.properties)
 (now: none in axis2)
Does axis2 have set the mapping file?

Regards,
Alexey

On 6/21/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:

Hello

Does axis2 have option like -ns2p with arg file, file which contains
ns1=pkg1,ns2=pkg2?
In axis1 it was NStoPkg.properties

Thanks,
Alexey



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