Re: [axis-user] Axis https Client

2008-06-11 Thread Karthik R




Hello Brachet, 
Can you tell me how it got resolved

BRACHET Maxime wrote:
Problem resolved,
It come from the way to add the CA certificate to the keystore.
for thoses who are interested : 
keytool -import -trustcacerts -alias "sensible-name-for-ca" -file
CAcert.crt -keystore MYSTORE.jks
  
from http://shib.kuleuven.be/docs/ssl_commands.shtml
  
Regards,
Maxime.
  
  2008/6/12 BRACHET Maxime <[EMAIL PROTECTED]>:
  Hi,

I am trying to code a simple webservice using https.
I use Axis2 deployed in Tomcat 5.5.26.
I configured the https connector, with a Certificate signed by my CA.
When I load the same jks for the server and the client using :
    System.setProperty("javax.net.ssl.trustStore", "jks");
        System.setProperty("javax.net.ssl.trustStorePassword",
"password");
It works.
But If I used a jks wich contain only my CA self signed certificate it
doesn't work.

The certificates I have are the followings :
CA.crt, pem, format , self signed
container.crt, pem format, CA signed
container.key, pem format, CA signed
I don't want to give the container crt and key to my client.

I someone have useful links with documentation or sample.

Thanks in advance.

Regards,
Maxime.

  
  





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



Re: [axis-user] Axis https Client

2008-06-11 Thread BRACHET Maxime
Problem resolved,
It come from the way to add the CA certificate to the keystore.
for thoses who are interested :
keytool -import -trustcacerts -alias "sensible-name-for-ca" -file CAcert.crt
-keystore MYSTORE.jks

from http://shib.kuleuven.be/docs/ssl_commands.shtml

Regards,
Maxime.

2008/6/12 BRACHET Maxime <[EMAIL PROTECTED]>:

> Hi,
>
> I am trying to code a simple webservice using https.
> I use Axis2 deployed in Tomcat 5.5.26.
> I configured the https connector, with a Certificate signed by my CA.
> When I load the same jks for the server and the client using :
> System.setProperty("javax.net.ssl.trustStore", "jks");
> System.setProperty("javax.net.ssl.trustStorePassword", "password");
> It works.
> But If I used a jks wich contain only my CA self signed certificate it
> doesn't work.
>
> The certificates I have are the followings :
> CA.crt, pem, format , self signed
> container.crt, pem format, CA signed
> container.key, pem format, CA signed
> I don't want to give the container crt and key to my client.
>
> I someone have useful links with documentation or sample.
>
> Thanks in advance.
>
> Regards,
> Maxime.
>


Failed to load from file, META-INF/ServiceData.xml

2008-06-11 Thread asheikh
Hi

Can someone please guide me what this error means. My service was running ok
for sometime, and I don't know what I have changed. I am suddenly getting
the exception below,  Thanks

2008-06-12 09:37:32,533 [DEBUG] File does not exist in the Service
Repository! File=META-INF/ServiceData.xml
2008-06-12 09:37:32,565 [DEBUG] Check loading failure for file,
META-INF/ServiceData.xml.Message = Failed to load from file,
META-INF/ServiceData.xml
2008-06-12 09:37:32,565 [DEBUG] Check loading failure for file,
META-INF/ServiceData.xml
org.apache.axis2.dataretrieval.DataRetrievalException: Failed to load from
file, META-INF/ServiceData.xml
at
org.apache.axis2.dataretrieval.DataRetrievalUtil.buildOM(Ljava/lang/ClassLoader;Ljava/lang/String;)Lorg/apache/axiom/om/OMElement;(DataRetrievalUtil.java:64)
at
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.loadServiceData()V(AxisDataLocatorImpl.java:103)
at
org.apache.axis2.description.AxisService.getDefaultDataLocator()Lorg/apache/axis2/dataretrieval/AxisDataLocator;(AxisService.java:2281)
at
org.apache.axis2.description.AxisService.getDataLocator(Lorg/apache/axis2/dataretrieval/LocatorType;Ljava/lang/String;)Lorg/apache/axis2/dataretrieval/AxisDataLocator;(AxisService.java:2265)
at
org.apache.axis2.description.AxisService.getData(Lorg/apache/axis2/dataretrieval/DataRetrievalRequest;Lorg/apache/axis2/context/MessageContext;)[Lorg/apache/axis2/dataretrieval/Data;(AxisService.java:2184)
at
org.apache.axis2.description.AxisService.getWSDL(Ljava/io/OutputStream;[Ljava/lang/String;)V(AxisService.java:1139)
at
org.apache.axis2.description.AxisService.printWSDL(Ljava/io/OutputStream;Ljava/lang/String;)V(AxisService.java:1077)
at
org.apache.axis2.transport.http.ListingAgent.processListService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(ListingAgent.java:280)
at
org.apache.axis2.transport.http.AxisServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(AxisServlet.java:229)
at
javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6981)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3892)
at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2766)
at
weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown
Source)
Caused by: javax.xml.stream.XMLStreamException: File does not exist in the
Service Repository! File=META-INF/ServiceData.xml
at
org.apache.axis2.dataretrieval.DataRetrievalUtil.getInputStream(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/io/InputStream;(DataRetrievalUtil.java:103)
at
org.apache.axis2.dataretrieval.DataRetrievalUtil.buildOM(Ljava/lang/ClassLoader;Ljava/lang/String;)Lorg/apache/axiom/om/OMElement;(DataRetrievalUtil.java:60)
... 21 more
2008-06-12 09:37:33,049 [DEBUG] XMLStreamReader is
com.ctc.wstx.sr.ValidatingStreamReader
2008-06-12 09:37:33,080 [DEBUG] XMLStreamReader is
com.ctc.wstx.sr.ValidatingStreamReader
2008-06-12 09:37:33,080 [DEBUG] XMLStreamReader is
com.ctc.wstx.sr.ValidatingStreamReader
2008-06-12 09:37:33,284 [DEBUG] XMLStreamWriter is
com.ctc.wstx.sw.SimpleNsStreamWriter


[axis-user] Axis https Client

2008-06-11 Thread BRACHET Maxime
Hi,

I am trying to code a simple webservice using https.
I use Axis2 deployed in Tomcat 5.5.26.
I configured the https connector, with a Certificate signed by my CA.
When I load the same jks for the server and the client using :
System.setProperty("javax.net.ssl.trustStore", "jks");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
It works.
But If I used a jks wich contain only my CA self signed certificate it
doesn't work.

The certificates I have are the followings :
CA.crt, pem, format , self signed
container.crt, pem format, CA signed
container.key, pem format, CA signed
I don't want to give the container crt and key to my client.

I someone have useful links with documentation or sample.

Thanks in advance.

Regards,
Maxime.


Re: Why Axis2 Engine sends "type" in the "return" tag of SOAP Response Messages?

2008-06-11 Thread Deepal Jayasinghe



Hello,

Please, if someone can help me, I would like to know why Axis2 Engine 
includes an attribute "/type/" in the "/return/" tag of a SOAP 
/myMethodResponse/ message, when the returning type of this method is 
a complex, custom-defined, object.


Actually that is something in my list for immediate fix. The idea of 
type is something like xsi:type. But we are not handling that correctly. 
So with this you can have interface which returns interfaces , but at 
the run time you can return any implementation class of that interface. 
So putting the type attribute help other side to figure out the type of 
the object in the message.


Thank you!
Deepal


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



NoSOAPAction Error...!!!

2008-06-11 Thread Sandeep Kumar K

I am trying to develop a simple SOAP application using Axis.

I deployed axis in Apache Tomcat 6.

My Server code is : *MessageService.jws
*(I have copied this file in CATALIA_HOME\webapps\axis folder).*
*import org.w3c.dom.Element;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPElement;

public class MessageService
{
   public Element[] echoElements(Element [] elems)
   {
   return elems;
   }
  
   public void process(SOAPEnvelope req, SOAPEnvelope resp) throws 
javax.xml.soap.SOAPException

   {
   try
   {
   SOAPBody body = resp.getBody();
   System.out.println("\n\n");
   System.out.println(body);
   System.out.println("\n\n");
   Name ns0 =  resp.createName("TestNS0", "ns0", 
"http://example.com";);
   Name ns1 =  resp.createName("TestNS1", "ns1", 
"http://example.com";);

   SOAPElement bodyElmnt = body.addBodyElement(ns0);
   SOAPElement el = bodyElmnt.addChildElement(ns1);
   el.addTextNode("TEST RESPONSE");
   }
   catch(Exception exp)
   {
   exp.printStackTrace();
   }
   }
}

And Client Code is : *TestClient.java

*import java.io.ByteArrayInputStream;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPBody;

public class TestClient
{
   public static void main(String [] args)
   {
   try
   {
   StringxmlString="encoding=\"UTF-8\"?>\n" +
   "xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"; +
   "   
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"; +
   "   
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\";>\n" +

   " \n" +
   "  xmlns:shw=\"http://localhost:8080/axis/MessageService.jws\";>\n" +
   "
Tony\n" +

   "  \n" +
   " \n" +
   " \n" +
   "  xmlns:shw=\"http://localhost:8080/axis/MessageService.jws\";>\n" +
   "
GENT\n" +

   "  \n" +
   " \n" +
   "";
  
   MessageFactorymf=
MessageFactory.newInstance();
   SOAPMessagesmsg=mf.createMessage(new 
MimeHeaders(), new ByteArrayInputStream(xmlString.getBytes()));

   SOAPPartsp=smsg.getSOAPPart();
   SOAPEnvelopese=
(SOAPEnvelope)sp.getEnvelope();
  
   SOAPConnectionconn=
SOAPConnectionFactory.newInstance().createConnection();
   SOAPMessageresponse=conn.call(smsg, 
"http://localhost:8080/axis/MessageService.jws";);
  
   System.out.println("Response : " + response.getSOAPBody());

}
   catch (Exception e)
   {
   System.err.println(e.toString());
   }
   }
}

And when I try to execute the program I am getting this Exception in 
Tomcat Console


AxisFault
faultCode: {http://xml.apache.org/axis/}Client.NoSOAPAction
faultSubcode:
faultString: no SOAPAction header!
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}stackTrace:no SOAPAction header!
   at 
org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.java:1013)
   at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:678)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at 
org.apache.catalina.

Echo Service via HTTPS throws IOException reading request

2008-06-11 Thread erabelli

Hi,

I am trying Echo Service over HTTPS. It works fine but server-side throws
following exception stack trace:

DEBUG [2008-06-11 13:49:52,635]  IOException reading request
javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLExcep
tion: java.net.SocketException: Connection reset
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.jav
a:1232)
...

Here is my client code:

System.setProperty("javax.net.ssl.trustStore",
"WebContent\\WEB-INF\\conf\\PingClient-TrustStore.jks");
System.setProperty("javax.net.ssl.trustStoreType", "JKS");
System.setProperty("javax.net.ssl.trustStorePassword",
"password");

stub = new EchoStub(configContext, URL);

EchoStringDocument echoStringDoc =
EchoStringDocument.Factory.newInstance();

EchoStringDocument.EchoString echoString =
echoStringDoc.addNewEchoString(); 
echoString.setIn("Hello There");

echoStringDoc.setEchoString(echoString);

EchoStringResponseDocument response =
stub.echoString(echoStringDoc);

-- 
View this message in context: 
http://www.nabble.com/Echo-Service-via-HTTPS-throws-IOException-reading-request-tp17785016p17785016.html
Sent from the Axis - User mailing list archive at Nabble.com.


Re: How do I get rid of xsi:type attributes?

2008-06-11 Thread David Ojeda
Hello,

I didn't notice you were using axis 1.2.1. Is axis generating a AntalBarnHemma 
class? How do you set this? Could you send that piece of code?
I am guessing that BeraknaBostadsbidragRequest has a setAntalBarnHemma method 
that receives a short, but perhaps there is a method that receives a 
different object...

On Wednesday 11 June 2008 10:19:10 am Roger P wrote:
> Hi,
>
> On 6/11/08, David Ojeda <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I am sorry I am not replying because I can help you. I was just wondering
> > where do you set this SEND_TYPE_ATTR?
>
> First I'm using Axis 1.2.1 so I don't know if this applies to your
> problem. I'm setting it on my org.apache.axis.client.Call. It's auto
> generated:
> _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
> Boolean.FALSE);
>
> > Anyway, back to your problem, could you please explain why the xml that
> > axis sends is "not accepted" ? Is there an exception perhaps? SoapUI has
> > an error log if this is the case...
>
> I get an internal error in the integration server we are using:
>  error: Type '[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema' is not derived
> from
> 'E=AntalBarnHemma|[EMAIL PROTECTED]://fk.se/ICC/Integr
>ations/I0021/BeraknaBostadsbidrag/xsd'
>
> I can't change the server to fix this so I have to do something with the
> client.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Ing. David Ojeda
Integra Consultores
+58 416 6262898
Caracas, Venezuela

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



Consume Axis web service in .net client

2008-06-11 Thread Mathias P.W Nilsson

Hi!

I have developed a simple Axis webservice and it works fine when invoking it
from a java client. When trying to invoke it in .net client I get an array
but all the values in the array is empty or nothing. 

I have read some posts here about this but I can't resolve this. Has anyone
consumed Axis webservice from .net with success?

Here is the wsdl genereted from a pojo using eclipse plugin

   
- http://ws.hairless.edgesoft.se";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:impl="http://ws.hairless.edgesoft.se";
xmlns:intf="http://ws.hairless.edgesoft.se";
xmlns:tns1="http://model.ws.hairless.edgesoft.se";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
-  
- 
- http://ws.hairless.edgesoft.se";
xmlns="http://www.w3.org/2001/XMLSchema";>
  http://model.ws.hairless.edgesoft.se"; /> 
- 
   
  
- 
- 
- 
   
  
  
  
  
- http://model.ws.hairless.edgesoft.se";
xmlns="http://www.w3.org/2001/XMLSchema";>
- 
- 
   
   
  
  
  
  
- 
   
  
- 
   
  
- 
- 
   
   
  
  
- 
  http://schemas.xmlsoap.org/soap/http"; /> 
- 
   
- 
   
  
- 
   
  
  
  
- 
- 
  http://192.168.1.2/hairless-web/services/OrderService"; /> 
  
  
  
-- 
View this message in context: 
http://www.nabble.com/Consume-Axis-web-service-in-.net-client-tp17784604p17784604.html
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: More SOAP Attachment Questions

2008-06-11 Thread Thilina Gunarathne
Hi,


> I have the MTOM examples setup and working, uploading and downloading a
> binary file.  All good on that.  Thanks!

Nice..

>
> So, now, Im trying to get the SOAP w/ Attachments examples working.   I
> have the UPLOAD example working,
> but cant get the DOWNLOAD version working.
>
> I have a couple questions:
>
> 1) I noticed you have a method signature like:
>
> public OMElement getFile(OMElement element)
>
> Why are you using OMElement as the argument and return value?
>
> Couldn't you just send a String to request a specific file and return a
> String with the ContentID specified for a reference to the attachment?

Yes... It's possible.. But u need to make sure you return the correct
content-id of the attachment you attached.
   String graphImageID =
outMessageContext.addAttachment(graphImageDataHandler);


> Or even better use a SwA reference, something like this in the WSDL:

AFAIK Axis2 does not support code generating to SwARef..

>
>
> 2) I noticed you use in your services.xml file:
>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> Is there a reason you chose this class to be your receiver instead of:
> 
>   mep=http://www.w3.org/2004/08/wsdl/in-out
>
>   class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>
> which is what the UPLOAD method uses in the SwA attachment method.

You can use either of them.

>
>
> 3) I was under the impression that the main difference between MTOM and SwA
> methods of attachment is that in the MTOM method, the encoded binary file is
> INSIDE the envelope of the message instead of outside of the envelope, yet,
> when I look at what is being transmitted, it looks like the binary file is
> still being sent as an attachment outside of the envelope no matter which
> method is used. Why is this? Am I not understading the differences
> correctly?

The wire level format is more or less that same for MTOM & SwA.. It's the
referencing mechanism that's different.. That small difference gives a lot
of advantages at the XML level. Also when using MTOM, binary data can go in
the envelope (base64 encoded) or can go as attachments without making any
difference to the XML object models of the sending/receiving sides..

Have a look at http://ws.apache.org/axis2/1_4/mtom-guide.html..
Specifically at the message traces given at the
http://ws.apache.org/axis2/1_3/mtom-guide.html#33

thanks,
Thilina


>
>
> __
> Marc Lefebvre, Principle Software Engineer
> Akimeka, 1305 N. Holopono Street, Kihei, HI 96753
> Phone: (808)442-7168, Email: [EMAIL PROTECTED]
> echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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


NullpointerException when splittling WSDL

2008-06-11 Thread Christoph M. Pflügler

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everybody,

I am actually trying to build a small WebService from a wsdl. If I use
the WSDL as one file, I don't have problems. But when I split this
WSDL-file into 3 ones, I get a NullPointerException (see error message
below) when calling the WebService.

So my first question is: is it possible to split a WSDL into more files
with AXIS2? I could not find information on that except that the WSDL
standard allows me to import other WSDL definitons.

And, if the first one is yes, what could be the problem with my service?

I generate the Skeleton using WSDL2Java, add some logic and build the
.aar archive with the generated ant script.

Any help would be appreciated!

Regards,
Christoph


# ERROR #

2008-06-11 19:48:17,206 [http-8080-1] ERROR
org.apache.axis2.transport.http.AxisServlet  -
java.lang.NullPointerException
at
org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122)
at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)



# Main WSDL #


http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:pos="orchestration:test:quotationService"
xmlns:common="orchestration:test:seller_common"
xmlns:docs="orchestration:test:docs"
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"


xmlns:BD_3A10_NotifyOfQuoteAck="http://www.example.org/MY_NotifyOfQuoteAck";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

~  
~  

~  
~http://schemas.xmlsoap.org/soap/http"/>
~
~  
~  
~
~  
~  
~
~  
~
~  
~  
~
~  http://192.168.1.101:8080/axis2/services/quotationService"/>
~
~  
~  



# seller_common.wsdl #


http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:pos="orchestration:test:seller_common"
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype";
xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"


xmlns:BD_3A10_NotifyOfQuoteAck="http://www.example.org/MY_NotifyOfQuoteAck";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>




~  
~
~  
~  
~
~  









# seller_common_msgs.wsdl #


http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:pos="orchestration:test:seller_common"
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:docs="orchestration:test:docs"
xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"


xmlns:BD_3A10_NotifyOfQuoteAck="http://www.example.org/MY_NotifyOfQuoteAck";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
~  
~
 

http://www.example.org/MY_NotifyOfQuoteAck";
schema

RE: WSDL2JAVA created uncompilable Stub

2008-06-11 Thread Kraus, David
Yeah, something similar happened to me. The MTOMAwareXMLStreamWriter
parameter is replaced by XMLStreamWriter in the stub code, which causes
the compilation problems. 

I am not absolutely sure what is happening here. I tried enabling MTOM
in my services.xml file, and found that wsdl2java generated different
stubs, which did compile.

However, when I went back and removed the services.xml setting, stub
generation did not change, and I could still compile.

I began to think that maybe my environment had been mixed between two
different versions of Axis2 (I was upgrading from axis2 1.2 to 1.4). So,
make sure you have your environment variables set correctly, and then
your classpath is correct.

Dave

-Original Message-
From: Adam Muller [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2008 4:02 AM
To: axis-user@ws.apache.org
Subject: WSDL2JAVA created uncompilable Stub

Hi,

with Axis2 1.4 - when I regenerate Stub, it cannot be compiled.
I got errors like these all over it:

The type WhoIsWhoServiceStub.AddressType must implement the inherited
abstract method ADBBean.serialize(QName, OMFactory,
MTOMAwareXMLStreamWriter, boolean)

The type WhoIsWhoServiceStub.AsyncResponseType must implement the
inherited abstract method ADBBean.serialize(QName, OMFactory,
MTOMAwareXMLStreamWriter, boolean)

etc. (there are about 100 errors in the file).

What am I doing wrong? I just upgraded from axis2 1.3 - it worked there
perfectly.

Thanks for your reply!

  Best regards
  Adam


-
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]



WSDL does not have type ifnormation

2008-06-11 Thread MrNobody

I am working with a web service which has a WSDL which contains no specific
information on the object types. For example, one of the web service calls
returns a list of objects with certain properties. However the WSDL is
completely anonymous. It does not specify that object's type nor it's
properties and their types. So when I generate XMLBeans and get a response I
can't just loop through them like POJOs, instead have to be treated as
abstract elements and nodes.

I am guessing the web service server needs to be regenerated with some kind
of option turned on to generate that type information. This web service was
generated through .NET. Does anyone know what options specifically I need to
ask the team responsible for this web service to turn on so I can get these
details in the WSDL? I have no experience with generating web services on
.NET...
-- 
View this message in context: 
http://www.nabble.com/WSDL-does-not-have-type-ifnormation-tp17781274p17781274.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Why Axis2 Engine sends "type" in the "return" tag of SOAP Response Messages?

2008-06-11 Thread Luis Bobo_Alten



Hello,

Please, if someone can help me, I would like to know why Axis2 Engine
includes an attribute "type" in the "return" tag of a SOAP myMethodResponse
message, when the returning type of this method is a complex,
custom-defined, object.

Hereby there is an example of a SOAPMessage Response generated by Axis2 (as
seen in SOAPMonitor) after invoking this Web Method which returns a complex
object.
This complex object has been previously transformed into WSDL and Schema of
the invoked WebService from an Entity Class using java2wsdl implementation
included in Axis2:

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

  
Value1
Value2
Value3
  

  


This drives to an error in schema validation because, as it is defined in
doc/lit wrapped wsdl, the type of the object in the response message of a
web method is already defined in the wsdl and the schema:

 
   





 ...












If, just for testing, I remove the type="xsd:myObjectEntity"  from the
WSDL, then schema validation passes, but I get the next error when I test
the Web Service with a generic Web Service Testing client application

"Attribute not allowed (no wildcards allowed): type in element
[EMAIL PROTECTED]

It seems again there is a problem sending that "type" attribute. I have
even seen SOAP Message Response samples, and this attribute is not sent for
doc/lit wrapped web services.

Is this a bug of Axis2 Message Builder? Am I doing something wrong?

I connect EJB Endpoint with Axis2 EJBProvider, I use Axis2 1.4 and my WSDL
is doc/lit wrapped style, WS-I compliant.

Kind regards,
Luis Bobo

How to engage both http based authentication and WSS for service?

2008-06-11 Thread Yarmamedov, Vasyl
Hi,

Maybe answer on this question already was posted but i could not find how to 
solve this problem.

Requirement: If request has wss header use it to authenticate user otherwise if 
http request has basic 
auth. headers use it to authenticate, if neaither wss nor basic http supplied 
use "anonymous" principal.

Setup: axis2 service deployed into weblogic container.

Since basic http is optional security-constraint on web app level cannot be 
used.
Option of wss brings up rampart, but if no wss header present in request - it 
will not authenticate request.

One possible way i see is to add a custom handler to InFlow that would take 
basic http authentication data and 
add wss header to message on the fly. Is this the right way to go? 
Is there any other ways? Can rahas help here, if yes then how?

Thank You
VY



Re: How do I get rid of xsi:type attributes?

2008-06-11 Thread Roger P
Hi,

On 6/11/08, David Ojeda <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am sorry I am not replying because I can help you. I was just wondering
> where do you set this SEND_TYPE_ATTR?
First I'm using Axis 1.2.1 so I don't know if this applies to your
problem. I'm setting it on my org.apache.axis.client.Call. It's auto
generated:
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);

>
> Anyway, back to your problem, could you please explain why the xml that axis
> sends is "not accepted" ? Is there an exception perhaps? SoapUI has an error
> log if this is the case...

I get an internal error in the integration server we are using:
 error: Type '[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema' is not derived
from 'E=AntalBarnHemma|[EMAIL 
PROTECTED]://fk.se/ICC/Integrations/I0021/BeraknaBostadsbidrag/xsd'

I can't change the server to fix this so I have to do something with the client.

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



Re: Axis2 and NTLM

2008-06-11 Thread MrNobody

What did you do to get it working ??


Natalia Ignatowicz wrote:
> 
> I finally got it working!
> Thanks a lot for your advices, Ajith!
> 
> Greetings,
> Natalia
> 
> 
>  Original-Nachricht 
>> Datum: Wed, 12 Mar 2008 16:00:07 -0400
>> Von: "Ajith Ranabahu" <[EMAIL PROTECTED]>
>> An: axis-user@ws.apache.org
>> Betreff: Re: Axis2 and NTLM
> 
>> Hi,
>> I am not an expert in this part of the API but here is what I
>> understand. Please see my comments inline.
>> 
>> On Wed, Mar 12, 2008 at 6:40 AM, Natalia Ignatowicz
>> <[EMAIL PROTECTED]> wrote:
>> > I've already found that page but it didn't help. Some parts of the code
>> are deprecated (HttpTransportProperties.NTLMAuthentication and
>> HTTPConstants.NTLM_Authentication don't exist in Axis2 1.3).
>> >
>> 
>> AFAIK if you are looking for NTLM on the server side then Axis2 would
>> have nothing to do with it (except for the case where Simple Axis
>> server is used. But I don't see why you would do that in production
>> anyway). Your container (say Tomcat) should be configured to handle
>> such things and Axis2 would not see it (nor would want to). For NTLM
>> on Tomcat you can use something like this
>> (http://jcifs.samba.org/src/docs/ntlmhttpauth.html)
>> 
>> 
>> >  Maybe I'm missing some basic points here. Is it even possible for an
>> Axis-Webservice to request NTLM-Auth? If yes, then how has the server to
>> be
>> configured? Or is NTLM only supported for Axis-Clients connecting to a
>> .NET-Webservice or something like that?
>> 
>> Basically the answer to this is yes. The NTLM support and
>> configuration mentioned in all Axis2-NTLM docs are for the client (see
>> my comment on top). Since the client is based on Commons HTTPClient
>> you might find some useful info here
>> (http://hc.apache.org/httpclient-3.x/authentication.html#NTLM)
>> 
>> HTH
>> 
>> Ajith
>> 
>> >
>> >  Greets,
>> >  Natalia
>> >
>> 
>> 
>> 
>> -- 
>> Ajith Ranabahu
>> 
>> Reading, after a certain age, diverts the mind too much from its
>> creative pursuits. Any man who reads too much and uses his own brain
>> too little falls into lazy habits of thinking - Albert Einstein
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Pt! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2-and-NTLM-tp15977716p17779482.html
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: How do I get rid of xsi:type attributes?

2008-06-11 Thread David Ojeda
Hello,

I am sorry I am not replying because I can help you. I was just wondering 
where do you set this SEND_TYPE_ATTR? I am having some trouble with xsd 
polymorphism and axis2+xmlbeans. So my problem is exactly the opposite, I 
need the xsi:types, but axis2 is not generating it.

Anyway, back to your problem, could you please explain why the xml that axis 
sends is "not accepted" ? Is there an exception perhaps? SoapUI has an error 
log if this is the case...



On Wednesday 11 June 2008 04:26:00 am Roger P wrote:
> I've googled but get either too many or too few hits. I'm forced to
> use a set of products and they don't want to play with each other.
>
> I've got this web service that I can successfully call using Soapui
> but it fails when I use Axis 1.2.1. The code is generated by Borland
> Jbuilder so I don't have that many configuration options (in the GUI
> editor).
>
> Anyway this is part of what the sever thinks is OK:
>
> http://schemas.xmlsoap.org/soap/envelope/";
>   xmlns:xsd="http://fk.se/ICC/Integrations/I0021/BeraknaBostadsbidrag/xsd";
>   xmlns:xsd1="http://fk.se/ICC/IntegrationsCommon/xsd";>
>
>
>   
> 
>  1
> 
>   
>
> 
>
>
> And this is what Axis sends (not accepted):
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   
>   xmlns="http://fk.se/ICC/Integrations/I0021/BeraknaBostadsbidrag/xsd";>
> 
> 1
> 
>  
>   
>
>
>
> The relevant part of the xsd:
> 
> 
>   
>   
>   
>   
>   
> 
> 
>
> So how can I get Axis to use something similar to the accepted
> version? If I intercept using TCPMonitor and remove
> xsi:type="xsd:short" then it works. SEND_TYPE_ATTR is set to false.
> WSDL element soap:body has attribute use="literal" so I tried
> "wrapped" with setEncodingStyle.
>
> Thanks!
> Roger P
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Ing. David Ojeda
Integra Consultores
+58 416 6262898
Caracas, Venezuela

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



Re:namespace mismatch require... found none

2008-06-11 Thread Martin Nad
Hi i had the same problem and i did as follow and it works very smoothly
and nice:

 

In my Client.java:

...

import javax.xml.namespace.QName;

...

String endpoint = "http://localhost:8095/axis2/services/SomeService";;

   call.setTargetEndpointAddress(new URL(endpoint));

call.setTargetEndpointAddress(new URL(endpoint));

   call.setOperationName(new
QName("http://localhost:8095/axis2/services/SomeService/ns","getFilePath
Name"));

..

 

End of java

In my service.xml:

...

http://localhost:8095/axis2/services/SomeService/ns"/>

...

In my build.xml:

http://localhost:8095/axis2/services/SomeService

..

 

And hope it will help you too

 

R

Martin Nad

  

.

 

 


##3

 

Hello,

I deployed POJOs using Axis2. All the get operations which take no

parameters work fine, but the ones take parameters, such as strings,
don't

work. It says "namespace mismatch require... found none.".

 

The following is the outgoing soap data and response:

*** Outgoing SOAP **



http://schemas.xmlsoap.org/soap/encod

ing/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";

xmlns:SOAP-ENV=

"http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="

http://www.w3.org/1999/XM

LSchema">





http://maximus:8080/axis2/services/PhoenixS

ervice">









 

*** SOAP Response**

http://sc

hemas.xmlsoap.org/soap/envelope/

">soapen

v:Servernamespace mismatch require

http://maximus:8080/

axis2/services/PhoenixService found none





 

Could not connect: http://maxi

mus:8080/axis2/services/PhoenixService found none>

 

Can anyone help? Thanks.

 

Tony Liu

 



Help Needed with Apache Axis

2008-06-11 Thread Sandeep Kumar K


I am trying to develop a simple SOAP application using Axis.

I deployed axis in Apache Tomcat 6.

My Server code is : *MessageService.jws
*(I have copied this file in CATALIA_HOME\webapps\axis folder).*
*import org.w3c.dom.Element;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPElement;

public class MessageService
{
   public Element[] echoElements(Element [] elems)
   {
   return elems;
   }
  
   public void process(SOAPEnvelope req, SOAPEnvelope resp) throws 
javax.xml.soap.SOAPException

   {
   try
   {
   SOAPBody body = resp.getBody();
   System.out.println("\n\n");
   System.out.println(body);
   System.out.println("\n\n");
   Name ns0 =  resp.createName("TestNS0", "ns0", 
"http://example.com";);
   Name ns1 =  resp.createName("TestNS1", "ns1", 
"http://example.com";);

   SOAPElement bodyElmnt = body.addBodyElement(ns0);
   SOAPElement el = bodyElmnt.addChildElement(ns1);
   el.addTextNode("TEST RESPONSE");
   }
   catch(Exception exp)
   {
   exp.printStackTrace();
   }
   }
}

And Client Code is : *TestClient.java

*import java.io.ByteArrayInputStream;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPBody;

public class TestClient
{
   public static void main(String [] args)
   {
   try
   {
   StringxmlString="encoding=\"UTF-8\"?>\n" +
   "xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"; +
   "   
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"; +
   "   
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\";>\n" +

   " \n" +
   "  xmlns:shw=\"http://localhost:8080/axis/MessageService.jws\";>\n" +
   "
Tony\n" +

   "  \n" +
   " \n" +
   " \n" +
   "  xmlns:shw=\"http://localhost:8080/axis/MessageService.jws\";>\n" +
   "
GENT\n" +

   "  \n" +
   " \n" +
   "";
  
   MessageFactorymf=
MessageFactory.newInstance();
   SOAPMessagesmsg=mf.createMessage(new 
MimeHeaders(), new ByteArrayInputStream(xmlString.getBytes()));

   SOAPPartsp=smsg.getSOAPPart();
   SOAPEnvelopese=
(SOAPEnvelope)sp.getEnvelope();
  
   SOAPConnectionconn=
SOAPConnectionFactory.newInstance().createConnection();
   SOAPMessageresponse=conn.call(smsg, 
"http://localhost:8080/axis/MessageService.jws";);
  
   System.out.println("Response : " + response.getSOAPBody());

}
   catch (Exception e)
   {
   System.err.println(e.toString());
   }
   }
}

And when I try to execute the program I am getting this Exception in 
Tomcat Console


AxisFault
faultCode: {http://xml.apache.org/axis/}Client.NoSOAPAction
faultSubcode:
faultString: no SOAPAction header!
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}stackTrace:no SOAPAction header!
   at 
org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.java:1013)
   at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:678)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at 
org.apache.catalina

Re: changing end point reference

2008-06-11 Thread Gary Weaver

Here's an example of how to change the endpoint in Axis2:

MyServiceStub stub = new MyServiceStub();
EndpointReference endpointReference = new 
EndpointReference("https://my.new.host:1234/some/path/to/my/service";);

stub._getServiceClient().getOptions().setTo(endpointReference);

Hope this helps,
Gary

--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University



sri ram wrote:

Hi all,
I have got a problem ,presently my service is available at this endpoint
run/services/apiservices
Can i change the endpoint to just
run/
will I be able to see my services there ,if yes how can I do that 
,what all changes should i do to the configuration files like axis2.xml


Please guide me on this
Thanks and Regards
Sriram P


Meet people who discuss and share your passions. Join them now. 
 





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



WSDL2JAVA created uncompilable Stub

2008-06-11 Thread Adam Muller
Hi,

with Axis2 1.4 - when I regenerate Stub, it cannot be compiled.
I got errors like these all over it:

The type WhoIsWhoServiceStub.AddressType must implement the inherited abstract 
method ADBBean.serialize(QName, OMFactory, MTOMAwareXMLStreamWriter, boolean)

The type WhoIsWhoServiceStub.AsyncResponseType must implement the inherited 
abstract method ADBBean.serialize(QName, OMFactory, MTOMAwareXMLStreamWriter, 
boolean)

etc. (there are about 100 errors in the file).

What am I doing wrong? I just upgraded from axis2 1.3 - it worked there 
perfectly.

Thanks for your reply!

  Best regards
  Adam


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



changing end point reference

2008-06-11 Thread sri ram
Hi all,
I have got a problem ,presently my service is available at this endpoint
run/services/apiservices
Can i change the endpoint to just 
run/
will I be able to see my services there ,if yes how can I do that ,what all 
changes should i do to the configuration files like axis2.xml

Please guide me on this 
Thanks and Regards
Sriram P


   
-
 Meet people who discuss and share your passions.  Join them now.

How do I get rid of xsi:type attributes?

2008-06-11 Thread Roger P
I've googled but get either too many or too few hits. I'm forced to
use a set of products and they don't want to play with each other.

I've got this web service that I can successfully call using Soapui
but it fails when I use Axis 1.2.1. The code is generated by Borland
Jbuilder so I don't have that many configuration options (in the GUI
editor).

Anyway this is part of what the sever thinks is OK:

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://fk.se/ICC/Integrations/I0021/BeraknaBostadsbidrag/xsd";
xmlns:xsd1="http://fk.se/ICC/IntegrationsCommon/xsd";>
   
   
  

 1

  
   



And this is what Axis sends (not accepted):
   http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
 http://fk.se/ICC/Integrations/I0021/BeraknaBostadsbidrag/xsd";>

1

 
  
   


The relevant part of the xsd:










So how can I get Axis to use something similar to the accepted
version? If I intercept using TCPMonitor and remove
xsi:type="xsd:short" then it works. SEND_TYPE_ATTR is set to false.
WSDL element soap:body has attribute use="literal" so I tried
"wrapped" with setEncodingStyle.

Thanks!
Roger P

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



date fields

2008-06-11 Thread Christian Lipp
Hello!

We want to have special date fields in our interfaces.

Days and month have special meanings, they can be null.
So we modeled the type this way:



DatumType: Format richtet sich
nach xsd:date, '00' bei Monat und Tag erlaubt 




   

We encountered some problems with this type, when customers called the
service with .net.
How would you model this kind of date type to stay portable?

Thanks, Christian


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



Re: Re : Axis2 / Maven 2

2008-06-11 Thread Karl Heinz Marbaise
Hi Julien,

first of all thanks for your answer

> mvn test is for unit testing. Should your tests require a running server
> it is no more a unit test but integration/acceptance test. 
That depends on the point of view...but you are right...

> There is a
> dedicated Maven phase for this concern: integration-test
That was the hint which took me on the right track...

> 
> You can setup your server during the pre-integration-test phase and
> cleanup during post-integration-test.

Now i have created a pom which will build my war, download Tomcat, start
Tomcat, deploy my war to Tomcat(this works in relationship with
cargo plugin)...

Now i have read a bit around and often there has pointed out that an
integration test should have it's own moduleis this correct?

May be you know a little bit about it...


Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



RE: service language

2008-06-11 Thread Christian Lipp
Hello,

our Problem is that the customers force us to use native language in our
interfaces,
because there are some attributes in it which cannot translated
meaningfully,
because they correspond to (local) law text.

So I am looking for a way or a design pattern to use different language in
the interfaces
with minimal impact on the rest of the software and I hoped, that the
mapping is configurable
in Axis2.

Thanks, CL


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Freitag, 06. Juni 2008 16:15
To: axis-user@ws.apache.org
Subject: AW: service language 

Hi Christian,

I would also go the same way of the solution. I am a German as well and we
had the same thing to do with one of our services. I just changed the
existing service by renaming the classes and methods and every language
specific part.

And in the future, I would try to produce always english services unless the
customer explicitly states that he wants to have that service in German. The
result of the called methods (e.g. a message) could, of course, still be in
German.

HTH,
Matthias.

> -Ursprüngliche Nachricht-
> Von: Christian Lipp [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 6. Juni 2008 13:56
> An: axis-user@ws.apache.org
> Betreff: service language
> 
> Hello!
> 
> We are using Axis V1.x and have some services implemented in German 
> language.
> Now we have a new project in a foreign country, so we are forced to 
> translate our interfaces to the English language.
> 
> In my understanding I have to
> - change the interface to English
> - generate classes (also with English names and attributes)
> - refactor the application from the usage of the german classes to the 
> usage of the english classes
> 
> Is the solution the same when using Axis V2.x?
> Or is there a possibility to map two interfaces with the same 
> structure but with different languages to the same class?
> If yes, how is this done?
> 
> Thanks for your help in advance,
> CL
> 
> 
> -
> 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]



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



Re: How to dump SOAP message contents?

2008-06-11 Thread jbolger

Hi Satish,

I know that there is a soapmonitor jar file included in distribution but i
actually used a freee program called wireshark which you can google that
monitors all of your network activity and displays the requests you are
making including all header info and handshakes etc.. 

Very good program, would recommend trying it.

John


satish madanwad wrote:
> 
> Hi,
> 
>   I am using WebServices with Apache Axis in my programs. I have
> generated client stubs and can prepare and  send the WebService
> request properly.
> 
>   I am trying to dump SOAP message (XML format) which is sent to
> WebServer for processing (to examine exact message being sent). I am not
> able to find any APIs for the same.
> 
>   Can you please suggest, if there is any API to dump SOAP messages
> sent from Apache Axis to WebServer?
> 
> Thanks in advance,
> Satish
> 
> 
> 
> 
> 
>   Bring your gang together. Do your thing. Find your favourite Yahoo!
> group at http://in.promos.yahoo.com/groups/
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-dump-SOAP-message-contents--tp17691977p17772233.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Help Needed with Apache Axis - Deploying JWS

2008-06-11 Thread Sandeep Kumar K

Hi.,

I am trying to develop a simple SOAP application using Axis.

I deployed axis in Apache Tomcat 6.

My Server code is : *MessageService.jws
*(I have copied this file in CATALIA_HOME\webapps\axis folder).*
*import org.w3c.dom.Element;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPElement;

public class MessageService
{
   public Element[] echoElements(Element [] elems)
   {
   return elems;
   }
  
   public void process(SOAPEnvelope req, SOAPEnvelope resp) throws 
javax.xml.soap.SOAPException

   {
   try
   {
   SOAPBody body = resp.getBody();
   System.out.println("\n\n");
   System.out.println(body);
   System.out.println("\n\n");
   Name ns0 =  resp.createName("TestNS0", "ns0", 
"http://example.com";);
   Name ns1 =  resp.createName("TestNS1", "ns1", 
"http://example.com";);

   SOAPElement bodyElmnt = body.addBodyElement(ns0);
   SOAPElement el = bodyElmnt.addChildElement(ns1);
   el.addTextNode("TEST RESPONSE");
   }
   catch(Exception exp)
   {
   exp.printStackTrace();
   }
   }
}

And Client Code is : *TestClient.java

*import java.io.ByteArrayInputStream;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPBody;

public class TestClient
{
   public static void main(String [] args)
   {
   try
   {
   StringxmlString="encoding=\"UTF-8\"?>\n" +
   "xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"; +
   "   
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"; +
   "   
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\";>\n" +

   " \n" +
   "  xmlns:shw=\"http://localhost:8080/axis/MessageService.jws\";>\n" +
   "
Tony\n" +

   "  \n" +
   " \n" +
   " \n" +
   "  xmlns:shw=\"http://localhost:8080/axis/MessageService.jws\";>\n" +
   "
GENT\n" +

   "  \n" +
   " \n" +
   "";
  
   MessageFactorymf=
MessageFactory.newInstance();
   SOAPMessagesmsg=mf.createMessage(new 
MimeHeaders(), new ByteArrayInputStream(xmlString.getBytes()));

   SOAPPartsp=smsg.getSOAPPart();
   SOAPEnvelopese=
(SOAPEnvelope)sp.getEnvelope();
  
   SOAPConnectionconn=
SOAPConnectionFactory.newInstance().createConnection();
   SOAPMessageresponse=conn.call(smsg, 
"http://localhost:8080/axis/MessageService.jws";);
  
   System.out.println("Response : " + response.getSOAPBody());

}
   catch (Exception e)
   {
   System.err.println(e.toString());
   }
   }
}

And when I try to execute the program I am getting this Exception in 
Tomcat Console


AxisFault
faultCode: {http://xml.apache.org/axis/}Client.NoSOAPAction
faultSubcode:
faultString: no SOAPAction header!
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}stackTrace:no SOAPAction header!
   at 
org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.java:1013)
   at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:678)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at 
org.apache.cat

java2wsdl : how to get this working with an axis2 sample

2008-06-11 Thread Alan South

Problem: java2wsdl gives error "An error occured while generating
codejava.lang.ClassNotFoundException:
samples.quickstart.service.pojo.StockQuoteServic
e"

It took me a long time to get wsdl2java  working, and on the way I checked
out the mail lists, which didn't help, although the problem seems common.
I hope that this will save other rookies time.

I enclose the console log, which shows what needs to be done.

-I have used the samples/quickstart example.
-Basically, ant generates the classes in build/classes
-java2wsdl needs this value in the -cp parameter...,

Have fun.


Alan South
--
C:\axis2-1.4\samples\quickstart>ant
Buildfile: build.xml

compile.service:
[mkdir] Created dir: C:\axis2-1.4\samples\quickstart\build
[mkdir] Created dir: C:\axis2-1.4\samples\quickstart\build\classes
[javac] Compiling 1 source file to C:\axis2-1.4
\samples\quickstart\build\classes
[javac] Note: C:\axis2-1.4
\samples\quickstart\src\samples\quickstart\service\pojo\StockQuoteService.java
 uses unchec
ked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.

generate.service:
 [copy] Copying 1 file to C:\axis2-1.4\samples\quickstart\build\classes
  [jar] Building jar: C:\axis2-1.4
\samples\quickstart\build\StockQuoteService.aar

BUILD SUCCESSFUL
Total time: 1 minute 11 seconds
C:\axis2-1.4\samples\quickstart>java2wsdl

C:\axis2-1.4\samples\quickstart>c:\axis2-1.4\bin\java2wsdl -cp . -cn
samples.quickstart.service.pojo.StockQuoteService -
of StockQuoteService.wsdl
Using AXIS2_HOME:   c:\axis2-1.4
Using JAVA_HOME:c:\Program Files\Java\jdk1.5.0_11
An error occured while generating codejava.lang.ClassNotFoundException:
samples.quickstart.service.pojo.StockQuoteServic
e
C:\axis2-1.4\samples\quickstart>java2wsdl

C:\axis2-1.4\samples\quickstart>c:\axis2-1.4\bin\java2wsdl -cp
build/classes -cn samples.quickstart.service.pojo.StockQu
oteService -of StockQuoteService.wsdl
Using AXIS2_HOME:   c:\axis2-1.4
Using JAVA_HOME:c:\Program Files\Java\jdk1.5.0_11
[WARN] Unable to generate EPR for the transport : http


C:\axis2-1.4\samples\quickstart>dir
 Volume in drive C has no label.
 Volume Serial Number is B004-CA8F

 Directory of C:\axis2-1.4\samples\quickstart

2008-06-11  08:27  .
2008-06-11  08:27  ..
2008-06-11  07:58  build
2008-03-15  13:52 2 846 build.xml
2008-06-11  08:27   125 java2wsdl.bat
2008-06-11  07:46   113 java2wsdl.bat~
2008-06-11  07:55 2 004 java2wsdl.txt
2008-06-11  07:5227 java2wsdl1.bat
2008-01-07  12:29 1 626 README.txt
2008-06-10  09:11  resources
2008-06-10  09:11  src
2008-06-11  08:27 5 717 StockQuoteService.wsdl
   7 File(s) 12 458 bytes
   5 Dir(s)  67 881 105 920 bytes free

C:\axis2-1.4\samples\quickstart>

--


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