Sending attachments to .NET Client

2007-10-10 Thread Raghavan
Hi all, We have a java web service which has to send an image file as attachment to a .NET compact framework client. I followed the tutorials available in the internet. All the code available in the internet returns the attachment to the client as OMElement. But since .NET compact framework does n

RE: Database connection

2007-10-10 Thread VF
Hi really thanx for responses. Yes it is possible for this service, that more users can connect this service at the same time, although there should not be so big traffic. I must think about it yet how should I implement it. Thank s and regards Vladi _ From: Rajith Attapattu [mailto

Re: Read Time out Error when calling webservice from a proxy

2007-10-10 Thread Upul Godage
Hi, Have you checked whether the proxy server is running in your machine (localhost) at 8090? I think you should be able to put those values in a browser proxy settings page and access something with the browser. Upul On 10/10/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi, > > > >

AW: [Axis2] How to remove namespaces from SOAP response in Axis2

2007-10-10 Thread Maiko Wessel
add the following entry to the services.xml: Von: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 10. Oktober 2007 07:54 An: axis-user@ws.apache.org Betreff: RE: [Axis2] How to remove namespaces from SOAP response in Axis2 Thanks Alick. I h

RE: Sending attachments to .NET Client

2007-10-10 Thread Ashish Arya
Raghvan, To solve the problem of sending attachments between .NET and Java, you can choose MTOM attachments. In that way your server code (Java) will deal with DataHanlder object while your client code (.NET) will deal with byte array. I have done that and it's working fine. Regards, Ashish Ar

Re: "Unexpected subelement return" exception

2007-10-10 Thread George H
Thank you for your response. Below is my WSDL file (I cut out the parts not dealing with my 2 problematic methods. Below that is the SOAP response. I think that is what you wanted? I set the log4j properties to DEBUG on the client side and dumped the output. Thank you. WSDL - http://schemas

Re: faultstring>The endpoint reference (EPR) for the Operation not found is http://122.22.2.22:9090/outboundws/services/Outbound and the WSA Action =

2007-10-10 Thread G71
Ok... Thank you... The 'core' problem is: when i set xmlns: http://www.pippo.it/blabla/";> or in the other service http://www.pippo.it/blabla/";> i've the same 'OK' result... Why? Why receive i a result of failure only for outbound in the case of setting in xmlns:m="http://www.paperino

Address already in use: connect

2007-10-10 Thread Pär Malmqvist
Hi! I have written a simple blocking client using Axis2 1.3 API's. When I do like this: for(int i = 0; i < 100; i++) { ... ServiceClient sender = new ServiceClient(); sender.sendReceive(payload); ... } there is no problem. The client runs for many hours. When I do like this: Se

RE: Peculiar Issue while testing a service

2007-10-10 Thread Gudla, Natraj (GE Money, consultant)
Hi, Any ideas on this? Cheers Natraj > -Original Message- > From: Gudla, Natraj (GE Money, consultant) > Sent: 09 October 2007 10:01 > To: 'axis-user@ws.apache.org' > Subject: Peculiar Issue while testing a service > > Hi, > > I am reporting a peculiar issue which i a

[Aixs2]: generating services.xml with wsdl2java

2007-10-10 Thread Peter A. Kirk
Hi Wsdl2Java can be used to generate "services.xml" - but it also generates java files (skeleton code for the webservice), and the services.xml file references the generated java classes. What if I already have a complete java file (containing all the necessary code for my webservice), and

Signing a message

2007-10-10 Thread Senthivel U S
Greetings, We have got the wsdl file and created Stub using WSDL2Java. We need to sign the message using our certificate. I find the following code EngineConfiguration config = new FileProvider("client_deploy.wsdd"); Service service = new Service();

Re: "Unexpected subelement return" exception

2007-10-10 Thread Amila Suriarachchi
I need the response soap envelop. you can use [1] to capture the request and the response. basically check whether your reponse is match to your schema. [1] http://ws.apache.org/commons/tcpmon/ Amila. On 10/10/07, George H <[EMAIL PROTECTED]> wrote: > > Thank you for your response. > > Below is

Problem with Rampart

2007-10-10 Thread Antonio Manuel Muñiz Martín
Hi. I try to use rampart. I folow the instructions in the doc (modify service.xml, engage module in axis2.xml and put the module file rampart-1.3in /axis2/modules directory). When I deploy the aar file axis throws the exception Error: org.apache.axis2.deployment.DeploymentException: The rampart mod

Re: Peculiar Issue while testing a service

2007-10-10 Thread Amila Suriarachchi
On 10/10/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]> wrote: > > Hi, > > Any ideas on this? how do you generate this request? some problem there. Cheers > Natraj > > > -Original Message- > > From: Gudla, Natraj (GE Money, consultant) > > Sent: 09 October 2007 10

Re: Read Time out Error when calling webservice from a proxy

2007-10-10 Thread Antonio Manuel Muñiz Martín
web service is running on the proxy? or your SOAP petition pass through a proxy? Try to send soap message to your service from soapUI (www.soapui.org). soapui alow proxy configuration. 2007/10/10, Upul Godage <[EMAIL PROTECTED]>: > > Hi, > > Have you checked whether the proxy server is running in

RE: [Aixs2]: generating services.xml with wsdl2java

2007-10-10 Thread Ashish Arya
Peter, If you remove the 'serverside' and 'serverSideInterface' attribute from target (in Ant), it will not generate the skeleton and interface for you. And since you don't have the complete information for generating services.xml, the same is also not generated by the tool. Thus I don't think

Re: Peculiar Issue while testing a service

2007-10-10 Thread Antonio Manuel Muñiz Martín
Do you modify the xsd in the correct place? Perhaps you are modifying the xsd and on deploy time the xsd used is other. 2007/10/10, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>: > > First i generate a sample xml file using the Eclipse IDE, using the xsd, > then use the parse method of

RE: Peculiar Issue while testing a service

2007-10-10 Thread Gudla, Natraj (GE Money, consultant)
First i generate a sample xml file using the Eclipse IDE, using the xsd, then use the parse method of axis generated wrapper class for my request, passing it the XMLStreamReader created from the sample xml. This worked fine end to end earlier. Sample class, calling stub passing the request objec

SV: [Aixs2]: generating services.xml with wsdl2java

2007-10-10 Thread Peter A. Kirk
Thanks for your reply. I do have all the info needed don't I? I have the .wsdl file, and the .java file for my web-service. All that I need is to generate the services.xml... But I guess the wsdl2java tool is written in such a way that it expects to generate services.xml from java code it

Re: Address already in use: connect

2007-10-10 Thread Michele Mazzucco
Try to set some custom options [1], like caching/reusing the same http client and throttling the max number of connections. Michele [1] http://svn.apache.org/viewcvs.cgi//webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/async/AsyncService2Test.java On Wed, 2007-10-10 at 11

RE: Peculiar Issue while testing a service

2007-10-10 Thread Gudla, Natraj (GE Money, consultant)
Yes i do. and i run the wsdl2java on the wsdl which refers to this xsd. I have just been doing some debuggin and see how the reader.getName() differs on the client side and the server side. The class GEM_Ln_LoanRequestDetails which was generated by axis, returns as "test" ( test is the simple

Null Pointer when adding child to OMElement

2007-10-10 Thread Chris Bowman
Hi, I am trying to add a simple child element to an OMElement I have created, but I am getting a null pointer. I am using the same syntax I have seen in the Axiom OM Tutorial (http://ws.apache.org/axis2/1_0/OMTutorial.html), and am using Axis 2 1.3. The code I try is: public static OMElement

Re: Null Pointer when adding child to OMElement

2007-10-10 Thread Upul Godage
Hi, This will work. public static OMElement createQuery(){ OMFactory factory = OMAbstractFactory.getOMFactory(); OMNamespace aon = factory.createOMNamespace(" http://www.aoi.com/WSDA/0.1","ao";); OMElement wsdaQueryNode = factory.createOMElement("wsdaQuery", aon, null);

Re: Null Pointer when adding child to OMElement

2007-10-10 Thread Chris Bowman
Upul, thank you very much, that has fixed it. Much appreciated, Chris Upul Godage wrote: Hi, This will work. public static OMElement createQuery(){ OMFactory factory = OMAbstractFactory.getOMFactory(); OMNamespace aon = factory.createOMNamespace(" http://www.aoi.com/WSDA/0.

Re: No serializer found for class in registry TypeMappingDelegate

2007-10-10 Thread Alexey Zavizionov
Thanks for reply! This MyEventPub is the sample user's class fired as event on server at runtime, therefore I don't know about before. How can I marshal this with JAXB for MessageElement ? I mean this MyEventPub is well annotated class and well marshalled to StringWriter(). Where can I store it

[Axis2/ADB] How to check whether optional parts of a SOAP message are specified

2007-10-10 Thread Rainer Menzner
Hi, suppose I have optional parts in an XML element used by a WSDL, e.g.: ... ... After the stub classes have been generated by wsdl2java, how can I check whether IsHit was specified based on a stub class? I know there are tr

RE: No serializer found for class in registry TypeMappingDelegate

2007-10-10 Thread Walker, Jeff
Alexey, Let's step back for a minute. I'm confused as to your system setup. Let's go over the basics of Axis1-1.4 first. Assuming you started with a wsdl file first (Top-Down approach) and also assuming you are creating a Document/Literal based wsdl, you must create XML Schema for every Java class

Re: [Axis2 1.3]POJO-based RESTFul serivce

2007-10-10 Thread Takanori Suzuki
Thanks, Keith. > As you can see addEntry element contains another complex type within it. > Hence the parameters at the serverside cannot produce the required SOAP > message that Axis2 needs. This will work perfectly with application/xml on a > post though. Can you try to codegenerate a stub using

[Axis2] inner class loading of a lib.jar

2007-10-10 Thread Nathan.S
It seems that inner classes of a lib.jar in the service.aar cannot be loaded. I get a java.lang.ClassNotFoundException: mypackage.TestClass$InnerClass If I put the lib.jar not in the service.aar but in the axis2/WEB-INF/lib it works. Do I make a mistake or is something wrong with the axis2 class

Re: [Axis2 1.3]POJO-based RESTFul serivce

2007-10-10 Thread keith chapman
I didnt get your question clearly. If you want to send application/xml using an HTML client I think you will have to create the XML payload. Is that what you asked? Thanks, Keith. On 10/10/07, Takanori Suzuki <[EMAIL PROTECTED]> wrote: > > Thanks, Keith. > > > As you can see addEntry element cont

WSDL2JAVA does not generate WebServiceProxy

2007-10-10 Thread Dário Abdulrehman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am using WSDL2JAVA via the Eclipse plugin to generate a WS Client. Usually it generates 5 Java Classes: Foo.java FooBindingStub.java FooProxy.java FooService.java FooServiceLocator.java However my wsdl does not generate the FooProxy.java class and

Error: Unexpected subelement responseCode

2007-10-10 Thread M K
Hello, I am using axis2 1.3 and deploy me service on JBOSS 4.0.5. I am getting following error when I run my client: * org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement responseCode at

Axis2 memory footprint

2007-10-10 Thread Anders Kristensen
Hi, The Axis2 Web page says that "Axis2 was designed ground-up keeping low memory foot print in mind." Can anyone quantify roughly how much memory is needed for a simple Axis2 SOAP service running on top of a Tomcat server? Just the memory taken by Axis2 and Axis2 generated code. I'm just

RE: [AXIS2] Simple (?) config question

2007-10-10 Thread Raghu Upadhyayula
Hi Deepal, According to what you said I've changed the contextRoot & servicePath in axis2.xml. I've changed it like this. /webservices myService And when I go to http://localhost/webservices/myService?wsdl I'm able to see the WSDL. But in the WSDL the end point address is shown

[Axis2] javax.xml.ws.soap.Addressing is missing?

2007-10-10 Thread Michele Mazzucco
Hi all, from here [1, par 2.2.1] and here [2] I understand that is possible to enable the WS-Addressing on the server side via the @javax.xml.ws.soap.Addressing annotation, but I can't find it into the axis2 distribution. Is there any reason for this? Thanks, Michele [1] https://jax-ws.

Re: Problem with Rampart

2007-10-10 Thread Anthony Bull
You also need to put all the .jar files from the lib folder of rampart into axis2/WEB-INF/lib. Antonio Manuel Muñiz Martín wrote: Hi. I try to use rampart. I folow the instructions in the doc (modify service.xml, engage module in axis2.xml and put the module file rampart-1.3 in /axis2/modules

RE: Problem with Rampart

2007-10-10 Thread Martin Gainty
please verify rampart.mar is located in $CATALINA_HOME/webapps/$AXIS2-WEBAPP-NAME/WEB-INF/modulesfolder Thanks/Martin__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This

[axis2] AxisFault Best Practices

2007-10-10 Thread Nathan Hook
I have a few questions about how to properly use the messaging of an AxisFault to clearly explain our faults. First, is the correct use of QName. I know that a QName represents a Qualified Name and has to do with namespaces, but how important is it to set the namespaceURI, localPart, and pref

Re: [axis2] AxisFault Best Practices

2007-10-10 Thread zhongliang zhang
I am new to web service,too. In my opinion,AxisFault is just an implementation by Axis2,as you know,the web service based on SOAP,so the real useful message is the SOAPFault. So,you can return a SOAPFault message rather than an AxisFault instance,then the client side can catch an AxisFault,the same

Message Receiver not found for AxisOperation

2007-10-10 Thread francesco foresti
Hi, i'm trying to access a deployed group of services, which are shown as active, and i can see their wsld(s) (with axis2-1.3 in three different versions: bin. war. nightly build); however, every client i've written until now throws this kind of error (as follows), so what am i doing wrong? than

Re: Message Receiver not found for AxisOperation

2007-10-10 Thread Upul Godage
Hi, I think this part, http://www.w3.org/2004/08/wsdl/in-out"; class="org.apache.axis2.receivers.RawXMLInOutMessageReceiver" /> urn:getEtichetta should be like this. http://www.w3.org/2004/08/wsdl/in-out"; class=" org.apache.axis2.rece

RE: Sending attachments to .NET Client

2007-10-10 Thread Raghavan
Thanks Arya. Could you please guide me to some sample java code as well as .NET client code for the MTOM attachments.. Rgds, Raghavan.V. -Original Message- From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 1:43 PM To: axis-user@ws.apache.org Subject: RE: Sendi

Re: WSDL2JAVA does not generate WebServiceProxy

2007-10-10 Thread Lahiru Sandakith
Seems the WSDL we see here maybe distorted. Can you reattach it. Thanks Lahiru On 10/10/07, Dário Abdulrehman <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I am using WSDL2JAVA via the Eclipse plugin to generate a WS Client. > Usually it generates 5 Java Classe

RE: Sending attachments to .NET Client

2007-10-10 Thread Ashish Arya
Let me give you an example indicating the way I have implemented MTOM attachment transmission between .NET (client) and J2EE (Server). Assume that you want to send an image as MTOM attachment. First write an interface or Class on service side with the following method: DataHandler getImage(Stri

RE: Sending attachments to .NET Client

2007-10-10 Thread Raghavan
Thanks Arya.. Will try ur steps... Rgds, Raghavan.V. -Original Message- From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 10:22 AM To: axis-user@ws.apache.org Subject: RE: Sending attachments to .NET Client Let me give you an example indicating the way I have

Re: [Axis2] inner class loading of a lib.jar

2007-10-10 Thread Deepal jayasinghe
Nathan.S wrote: > It seems that inner classes of a lib.jar in the service.aar cannot be loaded. > I get a java.lang.ClassNotFoundException: mypackage.TestClass$InnerClass > If I put the lib.jar not in the service.aar but in the axis2/WEB-INF/lib it > works. > > Do I make a mistake or is something w

Re: How to access incoming SOAP Message from outgoing SOAP message

2007-10-10 Thread Deepal jayasinghe
Gia Hieu Dinh wrote: > Hi, > I have encountered a difficult situation. I have written a simple AXIS2 > service that returns an image and another AXIS2 handler to resize the > outgoing image. Why cant you do the resizing inside the service ? any particular reason for not doing that? > However, whe

Re: Axis2: how to generate services.xml

2007-10-10 Thread Deepal jayasinghe
Peter A. Kirk wrote: > Hi there > > I have written a small program which generates and compiles a > web-service class and then creates a wsdl for this class. > > But how do I generate services.xml for the class? > > For example, to generate the wsdl file programmatically, I do this (and > I would a

Re: Database connection

2007-10-10 Thread Deepal Jayasinghe
Hi VF > Hi all, > I would like to ask u, how can i utilize database connection in my web > service. I have one web service with more methods in it. Id like to create > database connection just once and not with each call (each operation works > with the same database connection) Is it enough to cre