Re: Basic question on WSDL

2010-02-11 Thread Amila Suriarachchi
this[1] may help you.

please see how to specify headers.

thanks,
Amila.

[1] http://wso2.org/library/2935

On Fri, Feb 12, 2010 at 7:48 AM, Yashwanth Rajaram -X (yrajaram - Zensar at
Cisco)  wrote:

>  Hi All:
>
>
>
> I want to expose a WebService that would take a single parameter. However I
> want the caller to provide certain SOAP header parameters. Is there a way to
> enforce these required header, say, by using an XSD in WSDL or anything
> along those lines?
>
>
>
> thanks,
>
> --
>
> Yashwanth
>
> This email does not reflect the opinion of my employer/cisco.
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Axis2 Java code generation question.

2010-01-23 Thread TomazM
Is the Axis2  supported in WSDL2JavaJava code generation with 
jibx binding?


Regards, Tomaz
<>

Consume Axis2 service with .NET c# question

2010-01-08 Thread Pär Malmqvist

Hello!

When I use the following wsdl file to generate a SOAP client with .NET the 
client thinks it is a service of
the style 'bare' and not 'wrapped'.

I think the service is defined in wrapped style.
Can anyone please tell me if I am wrong?

Regards
Pär Malmqvist



http://main.sol";
xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
xmlns:tns="http://main.sol";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

http://main.sol";
xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:tns="http://main.sol"; xmlns:intf="http://main.sol";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>










   
  
 
 
   




















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













http://localhost:8080/axis2/services/SolDB2"/>




  
_
Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009

WSDL question

2009-12-29 Thread chris snow
I'm having a problem with using axis on another apache project (ofbiz).  I
think the problem is with the way the wsdl is built.  SoapUI generates a
soap request as follows:

http://schemas.xmlsoap.org/soap/envelope/";>
   
  http://ofbiz.apache.org/service/";>
 

   
  
   
   
  
   


   
  
   
   
  
   


   
  
   
   
  
   

 
  
   


However, the above request fails unless I remove the namespace prefix from
the elements below map-Map.

Is there a way to change the wsdl so that the ns2 prefix is not generated by
tools such as SoapUI?  The wsdl is below:

http://schemas.xmlsoap.org/wsdl/"; xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="
http://ofbiz.apache.org/service/"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; targetNamespace="
http://ofbiz.apache.org/service/";>

http://ofbiz.apache.org/service/";>




































































The name of element need to be
appended with name of entity such as eepk-Product for Product
entity.




The name of element need to be
appended with name of entity such as eeval-Product for Product
entity.




Object content need to be in CDATA
such as





















































http://ofbiz.apache.org/service/"; optional="true" type="col-LinkedList"/>
http://ofbiz.apache.org/service/"; optional="true"
type="eeval-"/>






http://ofbiz.apache.org/service/"; optional="false" type="std-String"/>
http://ofbiz.apache.org/service/";
optional="true" type="std-String"/>
http://ofbiz.apache.org/service/"; optional="true"
type="std-String"/>
http://ofbiz.apache.org/service/"; optional="true"
type="std-String"/>
http://ofbiz.apache.org/service/";
optional="false" type="std-String"/>
http://ofbiz.apache.org/service/";
optional="false" type="std-String"/>










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

http://localhost/webtools/control/SOAPService"; style="rpc"/>

http://schemas.xmlsoap.org/soap/encoding/"; namespace="
http://ofbiz.apache.org/service/"; use="literal"/>


http://schemas.xmlsoap.org/soap/encoding/"; namespace="
http://ofbiz.apache.org/service/"; use="literal"/>





http://localhost/webtools/control/SOAPService"/>



Question About Axis2 1.4.1 and \n

2009-12-08 Thread Triquoit Mathieu
Hi all,

I have a webservice which contains two operations. For the first one, I have
a field "address" (with type string). If the response contains a \n; I have
something like:

Address line 1
  Address line 2
  Address line 3


My other operation contains also a field "address"... If I perform the same
test (=this field must contain a multi-line text), I receive something like
the following:

 Address line 1 Address line 2 Address line 3

How is this possible ? When I am debugging in the two operations, I have
exactly the same behavior:

xmlWriter.writeCharacters(<
FIELD>); and the value of  is correct (e.g.: Address line 1\nAddress
line 2\nAddress line 3).

Could you please help me ?
Best regards,
Mathieu


Logging question (how to make sure service errors get logged)

2009-11-30 Thread Rafael Barrera Oro
Hello everyone, i've recently started experimenting with Axis2 with great
joy, however, i seem to be unable to configure it in a manner which
everything that goes wrong with a service invocation gets logged (The
axis2.log never gets modified)

This is the code of my service class:

public class LoginService {

private static Log logger = LogFactory.getLog(LoginService.class);

public Usuario login(String user, String pass){
List usuarios = null;

try{
usuarios =
Locator.getInstance().seguridadDAOFactory().getUsuarioDAO().findByLogin(user);
}
catch(Exception e){
logger.error(e.getLocalizedMessage());
}

return usuarios!=null?usuarios.get(0):null;
}
}

any exceptions should be logged in axis2.log right?

i did not touch the axis2 logging configuration so it should be the default
one

thanks in advance!

Rafael


Re: Question on Issue : AXIS2-4374

2009-11-24 Thread Nirav Shah
Thanks Andreas..Appreciate your response..



Regards,
Nirav S.



On Tue, Nov 24, 2009 at 11:19 AM, Andreas Veithen  wrote:

> Nirav,
>
> If I remember well, the fix is in a single file, namely the code
> generation template. You can see the change here: [1]. What you need
> to do is to check out the tag for the 1.5.1 release, apply the same
> changes to these sources and rebuild Axis2 (or at least the
> adb-codegen module). Since only the template is changed, it is
> sufficient to use the modified version for code generation, but you
> can continue to use an unchanged 1.5.1 version at runtime.
>
> Andreas
>
> [1]
> http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?view=diff&r1=788465&r2=788466&pathrev=788466
>
> On Tue, Nov 24, 2009 at 17:27, Nirav Shah  wrote:
> > Hi There,
> > Can someone please tell me what all changes are needed to fix this issue
> ?
> >
> > I am running Axis2.1.5.1 and I cannot Upgrade to a Snapshot release,
> though
> > i can upgrade few jars relating to the Code Generation. However, when i
> > tried  Upgrading to the ADB CodeGen Snapshot version, it forces me to
> > upgrade the Axi2-ADB jar and also the Axiom jars...
> >
> > Would appreciate if someone could help me with this.
> >
> >
> > Regards,
> > Nirav S.
> >
>


Re: Question on Issue : AXIS2-4374

2009-11-24 Thread Andreas Veithen
Nirav,

If I remember well, the fix is in a single file, namely the code
generation template. You can see the change here: [1]. What you need
to do is to check out the tag for the 1.5.1 release, apply the same
changes to these sources and rebuild Axis2 (or at least the
adb-codegen module). Since only the template is changed, it is
sufficient to use the modified version for code generation, but you
can continue to use an unchanged 1.5.1 version at runtime.

Andreas

[1] 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?view=diff&r1=788465&r2=788466&pathrev=788466

On Tue, Nov 24, 2009 at 17:27, Nirav Shah  wrote:
> Hi There,
> Can someone please tell me what all changes are needed to fix this issue ?
>
> I am running Axis2.1.5.1 and I cannot Upgrade to a Snapshot release, though
> i can upgrade few jars relating to the Code Generation. However, when i
> tried  Upgrading to the ADB CodeGen Snapshot version, it forces me to
> upgrade the Axi2-ADB jar and also the Axiom jars...
>
> Would appreciate if someone could help me with this.
>
>
> Regards,
> Nirav S.
>


Question on Issue : AXIS2-4374

2009-11-24 Thread Nirav Shah
Hi There,
Can someone please tell me what all changes are needed to fix this issue ?

I am running Axis2.1.5.1 and I cannot Upgrade to a Snapshot release, though
i can upgrade few jars relating to the Code Generation. However, when i
tried  Upgrading to the ADB CodeGen Snapshot version, it forces me to
upgrade the Axi2-ADB jar and also the Axiom jars...

Would appreciate if someone could help me with this.


Regards,
Nirav S.


Simple Axis 1 Debugging Question

2009-11-24 Thread New AxisU
Hi,

I am trying to get the code posted at
http://javaboutique.internet.com/tutorials/axisspring/ to work.  The article
is about integrating axis 1 with spring.  When I connect to
http://localhost:8015/AxisSpring/webservice I see the message

And now... Some Services

   - webservice
*(wsdl)*
  - doSomeWork

and this is a good sign.  But when I click on the wsdl link, I get

The requested resource (/AxisSpring/services/webservice) is not available.

Should I be able to see the wsdl?  On the real project at work this never
worked but our wsdl is very complicated; the wsdl in this example code is
trivial.


A question about the stub binding class from the WSDL2Java generated code

2009-10-27 Thread João Manuel Roseira Borges
Hello to whoever cares to answer me to this question,

I recently started to work in a team that is meant to give support to some java 
web applications in a production environment. The framework is JAVA2EE with 
usage of your axis packages to provide the web services. In the following a 
debugging incursion to the code, I found myself looking to the code of the 
binding stub class generated by the WSDL2Java tool - version 1.4 - specificaly 
the implemented method from the portType interface. In this file 
servicemaneSoapBindingStub.java, at lines 104 and 105, I find the following:

94:   org.apache.axis.client.Call _call = createCall();
...
try{
104: java.lang.Object _resp = _call.invoke(new 
java.lang.Object[] {parameterStringRequest});
105: if (_resp instanceof java.rmi.RemoteException) {

My question is the following:
After examining the code from the class org.apache.axis.client.Call, I've got 
under the impression that the method invoke from class 
org.apache.axis.client.Call may throw exceptions from class 
java.rmi.RemoteException  but never returns an object from this Exception 
class. Am i right? If so, is this a problem for the stub class code?

Looking forward to hear from you,


---
João Manuel Roseira Borges
Suporte Aplicacional TAP/Megasis
Ed19 - Piso 2 - Sala 24
extensão 36108



Empty fields question

2009-10-11 Thread scott07
Hi,

I have been trying to get a web service up and running with axis2 today
but been having a few problems.
I am using pojo, one of the parameters is a very simple object and the
object arrives but none of the variables of that object arrive.

So on the web service side I have this method

public Hashtable
getOwnedLandBetweenPoints(LoginCredentials pCredentials, int pFromX, int
pFromY, int pToX, int pToY)
throws WoWInternalException, WoWAPIUseException
  {
//do some stuff
  }

Here is my LoginCredentials class:

import java.io.Serializable;

public class LoginCredentials
  implements Serializable
{

  public String aPIUser;
  public String aPIKey;

  public String woWUsername;
  public String woWPassword;
}

I realise that returning Hashtable might be problematic, but the plan
was to sort that out when I got that far.  Anyway you can call the
method thats fine and the LoginCredentials arrives (because when calling
it you can set it to null and in this case you get a null passed in). 
However all the fields (no mater what you set them to on the client) are
always null (if you change the class so that all the fields are
initialised to empty string then they are all empty string).

The WSDL generated by axis is attached, and my noddy test class looks
like this

public class Test
{

  public static void main(String[] pArgs)
  {
try
{
  WorldsOfWarAPIStub tStub = new WorldsOfWarAPIStub();
 
  WorldsOfWarAPIStub.GetOwnedLandBetweenPoints tParam = new
WorldsOfWarAPIStub.GetOwnedLandBetweenPoints();
  WorldsOfWarAPIStub.LoginCredentials tCreds = new
WorldsOfWarAPIStub.LoginCredentials();
  tCreds.setAPIUser("1-WWST");
  tCreds.setAPIKey("HTft");
  tParam.setPCredentials(tCreds);
  tParam.setPFromX(0);
  tParam.setPFromY(0);
  tParam.setPToX(100);
  tParam.setPToY(100);

  WorldsOfWarAPIStub.GetOwnedLandBetweenPointsResponse tResponse =
tStub.getOwnedLandBetweenPoints(tParam);

  System.out.println(tResponse.get_return());
}
catch (Exception tEx)
{
  tEx.printStackTrace();
}
  }

}

I have also tried my LoginCredentials with get and set methods and
making the variables private, this made no difference.  If someone could
point me in the right direction that would me most appropriated.

Scott


wsdl.wsdl
Description: application/wsdl


Re: Question About wsdl4j License

2009-10-06 Thread Sagara Gunathunga
Hi ,

Sometimes ago somewhat similar topic discussed in Apache Woden list.
I'm not sure is it relevant to your case but this might help you [1] .

[1] - 
http://www.nabble.com/Woden-use-of-WSDL4J---Are-all-Software-Grants-in-place-td17441643.html

On Tue, Oct 6, 2009 at 10:14 PM, Davanum Srinivas  wrote:
> Please ask jsr110-eg-d...@yahoogroups.com per
> http://sourceforge.net/projects/wsdl4j/files/
>
> we get the jar from the source forge project.
>
> thanks,
> dims
>
>
> On 10/06/2009 12:32 PM, David Dillard wrote:
>>
>> Hi,
>>
>>
>>
>> I've got a question about the wsdl4j license in Axis2.  In the legal
>> stuff it says that wsdl4j is made available under the CPL 1.0.  However,
>> when I look at the source files that I *believe* make up all of wsdl4j I
>> see that they're all under the Apache 2 license.  In addition, I grep'd
>> the source and the only place where I find the string "Common Public" is
>> in the wsdl4j license file - not in any source file.  So either the
>> wsdl4j license file no longer applies or I'm missing something.
>>
>>
>>
>> Can someone help me out here?
>>
>>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> David
>>
>>
>>
>>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/


Re: Question About wsdl4j License

2009-10-06 Thread Davanum Srinivas

Please ask jsr110-eg-d...@yahoogroups.com per 
http://sourceforge.net/projects/wsdl4j/files/

we get the jar from the source forge project.

thanks,
dims


On 10/06/2009 12:32 PM, David Dillard wrote:

Hi,



I've got a question about the wsdl4j license in Axis2.  In the legal
stuff it says that wsdl4j is made available under the CPL 1.0.  However,
when I look at the source files that I *believe* make up all of wsdl4j I
see that they're all under the Apache 2 license.  In addition, I grep'd
the source and the only place where I find the string "Common Public" is
in the wsdl4j license file - not in any source file.  So either the
wsdl4j license file no longer applies or I'm missing something.



Can someone help me out here?





Thanks,



David






RE: Question About wsdl4j License

2009-10-06 Thread David Dillard
Just to clarify, when I said I grep'd the source, I meant ALL of the
source as found in the source distribution zip file, not just the files
I believe make up wsdl4j.

 

 

From: David Dillard [mailto:david_dill...@symantec.com] 
Sent: Tuesday, October 06, 2009 12:33 PM
To: axis-user@ws.apache.org
Subject: Question About wsdl4j License

 

Hi,

 

I've got a question about the wsdl4j license in Axis2.  In the legal
stuff it says that wsdl4j is made available under the CPL 1.0.  However,
when I look at the source files that I *believe* make up all of wsdl4j I
see that they're all under the Apache 2 license.  In addition, I grep'd
the source and the only place where I find the string "Common Public" is
in the wsdl4j license file - not in any source file.  So either the
wsdl4j license file no longer applies or I'm missing something.

 

Can someone help me out here?

 

 

Thanks,

 

David

 



Question About wsdl4j License

2009-10-06 Thread David Dillard
Hi,

 

I've got a question about the wsdl4j license in Axis2.  In the legal
stuff it says that wsdl4j is made available under the CPL 1.0.  However,
when I look at the source files that I *believe* make up all of wsdl4j I
see that they're all under the Apache 2 license.  In addition, I grep'd
the source and the only place where I find the string "Common Public" is
in the wsdl4j license file - not in any source file.  So either the
wsdl4j license file no longer applies or I'm missing something.

 

Can someone help me out here?

 

 

Thanks,

 

David

 



Re: [AXIS2] A question on axis2-wsdl2code-maven-plugin

2009-09-22 Thread Andreas Veithen
In a Maven build you should never let a plugin output generated code
into src/main/java, but instead into a temporary directory under
"target" (so that it will be removed by mvn clean). In that case it
doesn't matter that axis2-wsdl2code-maven-plugin places the code in a
subdirectory called "src".

Andreas

On Tue, Sep 22, 2009 at 19:58, Indrit Selimi  wrote:
> Dear all,
>
> I'm using the maven plugin of axis2. As a maven plugin I thought that giving 
> an output directory of
> src/main/java(or better nothing at all)
> and the right package name I could find the generated sources on my package, 
> but I'm seeing that the plugin generates a new directory src! So, at the end 
> I have this situation: src/main/java/src... how I can get rid of this new src 
> directory? Which are the best practices for integrating the plugin in a maven 
> project? BTW, a build.xml file is also created, for what is needed?
>
> Thank you very much.
>
> Indrit
>
>
> Plugin Configuration:
>        
>                org.apache.axis2
>                axis2-wsdl2code-maven-plugin
>                1.5
>                
>                    
> it.rcs.maps.service.providers.microsoft.webservice
>                    src/main/resources/wsdl/mappoint.wsdl
>                    true
>                    src/main/java
>                
>                
>                    
>                        wsdl
>                        generate-sources
>                        
>                            wsdl2code
>                        
>                    
>                
>            
>
>
>
>
>


[AXIS2] A question on axis2-wsdl2code-maven-plugin

2009-09-22 Thread Indrit Selimi
Dear all,

I'm using the maven plugin of axis2. As a maven plugin I thought that giving an 
output directory of  
src/main/java(or better nothing at all)
and the right package name I could find the generated sources on my package, 
but I'm seeing that the plugin generates a new directory src! So, at the end I 
have this situation: src/main/java/src... how I can get rid of this new src 
directory? Which are the best practices for integrating the plugin in a maven 
project? BTW, a build.xml file is also created, for what is needed?

Thank you very much.

Indrit


Plugin Configuration:

org.apache.axis2
axis2-wsdl2code-maven-plugin
1.5


it.rcs.maps.service.providers.microsoft.webservice
src/main/resources/wsdl/mappoint.wsdl
true
src/main/java 



wsdl
generate-sources

wsdl2code






  



Repeating the question: problem receiveing data at client side after enabling mtom

2009-09-14 Thread ghader
I 
have created a web service which returns a file as binary data to the 
client. It was working without any problem until I changed 
false in axis2.xml to 
be true, to enable sending the binary data using mtom. 
Now, I 
receive an error which says:  SOAP 1.2 fault: SOAP-ENV:Sender[no 
subcode]   
"End of file or no input: Operation interrupted or timed 
out"   
Detail: [no detail] 
I have no idea what the problem 
could be.


Re: axiom related question

2009-09-14 Thread Dmitry Beransky
I saw that list, but I thought it was for axiom developers, not users

On Mon, Sep 14, 2009 at 11:00 AM, Andreas Veithen
 wrote:
> commons-...@ws.apache.org is better.
>
> Andreas
>
> On Mon, Sep 14, 2009 at 19:55, Dmitry Beransky  wrote:
>> Hi,
>>
>> Is this the right place to post axiom questions?
>>
>>
>> Dmitry
>>
>


Re: axiom related question

2009-09-14 Thread Andreas Veithen
commons-...@ws.apache.org is better.

Andreas

On Mon, Sep 14, 2009 at 19:55, Dmitry Beransky  wrote:
> Hi,
>
> Is this the right place to post axiom questions?
>
>
> Dmitry
>


axiom related question

2009-09-14 Thread Dmitry Beransky
Hi,

Is this the right place to post axiom questions?


Dmitry


Re: Question about xsd:any

2009-08-28 Thread error3
Le vendredi 28 août 2009 à 07:53 +0530, Amila Suriarachchi a écrit :
> 
> try your self. for any It generates an OMElement. so you can have any
> thing.


Ok thanks, I think I've again mistunderstood the problem I have.
WS Client is stuck on the method fromOM(...);
I though that it was because it does not know the elements in the any
tag.

Debuging is really difficult in that part. I've not found exactly what
make it freeze (or infinite-looping). If I remember my yesterday test,
it was stuck in a parse method (I think in the QueryResultsBody class,
still generated with ).
here's the code looping (the  inner 'if' are false, so effectively, it's
looping. Now  I have to understand why...)

while(!reader.isEndElement()) {
   if (reader.isStartElement() ){

 if (reader.isStartElement() && new 
javax.xml.namespace.QName("","EventList").equals(reader.getName())){


object.setEventList(EventListType.Factory.parse(reader));
  
reader.next();

  }  // End of if for expected property start 
element

else

if (reader.isStartElement() && new 
javax.xml.namespace.QName("","VocabularyList").equals(reader.getName())){


object.setVocabularyList(VocabularyListType.Factory.parse(reader));
  
reader.next();

  }  // End of if for expected property start 
element

 }

Thanks again.



Re: Question about xsd:any

2009-08-27 Thread Amila Suriarachchi
On Thu, Aug 27, 2009 at 10:31 PM,  wrote:

> Hello again,
>
> I have a xsd with an extension, I mean something like that :
>
> [...]
> 
>  
>  
>   maxOccurs="unbounded" />
> 
> [...]
>
> I have a axis2 generated webservice. The response of this service use the
> above element of xsd).
> Well the service send me something like that
> [...]
> start
> this is a customfield
> this is a customfield
>
> Is there's a way to use the 'any' element in axis2 ? something like
> registering objects that can hold the de/serialization for 'any' ?
> Can 'customFields' be some more complex elements ? like :
> test


try your self. for any It generates an OMElement. so you can have any thing.

thanks,
Amila.

>
>
>
> thank you for any help
>
> --
> Martin
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Question about xsd:any

2009-08-27 Thread error3
Hello again,

I have a xsd with an extension, I mean something like that :

[...]

 
 
 

[...]

I have a axis2 generated webservice. The response of this service use the above 
element of xsd).
Well the service send me something like that
[...]
start
this is a customfield
this is a customfield

Is there's a way to use the 'any' element in axis2 ? something like registering 
objects that can hold the de/serialization for 'any' ?
Can 'customFields' be some more complex elements ? like :
test


thank you for any help 

-- 
Martin


[axis-users] Re: Newbie question

2009-08-27 Thread Arvind Narayan
Thanks, strangely enough, the issue was resolved after I enabled the
-b flag in WSDL2C. ( generate backwards compatible code ). Although
why that might be the case still confounds me.

thanks

arvind.

On Wed, Aug 26, 2009 at 11:58 PM, Chinmoy Chakraborty wrote:
> Instead of using ArrayList, use complex type array as return type
>
> e.g instead of using public ArrayList listFunctions(), use public Function[]
> listFunction()
>
> Chinmoy
>
> On Thu, Aug 27, 2009 at 4:12 AM, Arvind Narayan 
> wrote:
>>
>> Hello:
>>
>> I am facing a strange problem where I see SOAP data coming back from
>> the server, but my axis2 client is reading NULLs for all fields in an
>> array_list response.
>>
>> Here are the steps I took:
>>
>> (1) Used the WSDL2C tool in AXIS2C version 1.5 to generate stub
>> classes using adb binding and wv 1.1 ( all other versions fail )
>> (2) Server runs Axis2 inside tomcat.
>> (3) Start a tcpdump to see client/server interaction.
>> (4) Client starts up sends request to server.
>> (5) Server responds with required data. ( its an array_list type ).
>> tcpdump displays the returned data.
>> (6) Client sees 190 items in adb__sizeof_return( response, env );
>> (6) Client uses adb__get_return_at( response, env, i ) to get element
>> at i.
>> (7) Element is not NULL, but all inner members of the element are NULL.
>>
>> what could I be doing wrong? what other details do you need?
>>
>> thanks
>>
>> arvind.
>
>


Re: Newbie question

2009-08-26 Thread Chinmoy Chakraborty
Instead of using ArrayList, use complex type array as return type

e.g instead of using public ArrayList listFunctions(), use public Function[]
listFunction()

Chinmoy

On Thu, Aug 27, 2009 at 4:12 AM, Arvind Narayan wrote:

> Hello:
>
> I am facing a strange problem where I see SOAP data coming back from
> the server, but my axis2 client is reading NULLs for all fields in an
> array_list response.
>
> Here are the steps I took:
>
> (1) Used the WSDL2C tool in AXIS2C version 1.5 to generate stub
> classes using adb binding and wv 1.1 ( all other versions fail )
> (2) Server runs Axis2 inside tomcat.
> (3) Start a tcpdump to see client/server interaction.
> (4) Client starts up sends request to server.
> (5) Server responds with required data. ( its an array_list type ).
> tcpdump displays the returned data.
> (6) Client sees 190 items in adb__sizeof_return( response, env );
> (6) Client uses adb__get_return_at( response, env, i ) to get element
> at i.
> (7) Element is not NULL, but all inner members of the element are NULL.
>
> what could I be doing wrong? what other details do you need?
>
> thanks
>
> arvind.
>


Newbie question

2009-08-26 Thread Arvind Narayan
Hello:

I am facing a strange problem where I see SOAP data coming back from
the server, but my axis2 client is reading NULLs for all fields in an
array_list response.

Here are the steps I took:

(1) Used the WSDL2C tool in AXIS2C version 1.5 to generate stub
classes using adb binding and wv 1.1 ( all other versions fail )
(2) Server runs Axis2 inside tomcat.
(3) Start a tcpdump to see client/server interaction.
(4) Client starts up sends request to server.
(5) Server responds with required data. ( its an array_list type ).
tcpdump displays the returned data.
(6) Client sees 190 items in adb__sizeof_return( response, env );
(6) Client uses adb__get_return_at( response, env, i ) to get element at i.
(7) Element is not NULL, but all inner members of the element are NULL.

what could I be doing wrong? what other details do you need?

thanks

arvind.


Question about WSDL

2009-08-18 Thread Chinmoy Chakraborty
Hi All,

I have a service called ABS and the operation name is 'invoke'. The
operation has two parameters, one is String another one is a Float. These
are basic data type but why In the WSDL these data types show as complex
type? We have customers and they are having problems for the complex types
when they try to create stubs from the WSDL. The snippet of WSDL is
following:

.








.

Chinmoy


Re: [Axis2] Architecture Question (Concurrency)

2009-08-11 Thread Deepal jayasinghe
Marc Lefebvre wrote:
> I am deploying a POJO webservice using Axis2 and Java2Wsdl, etc...  
> Its all working nicely, but in developing the java code of my
> webservice I had some questions about HOW internally Axis works so
> that I can be sure of some possible issues that may arise.
>  
> Does Axis create a separate thread for each webservice call?  I am
> assuming yes at this point.
Yes, each request is handle by a separate thread. In the case of
SimpleHTTP Server we use Thread pool, and in the case of App server, we
use the thread given by the app server.
>  
> If so, then, in the webservice any data structure that is accessed by
> these threads must be thread safe.  Right?
As long as you have written the code not to have class variables, then
it would. Depending on the service scope we create different number of
service class instances.  For example, for request scope we create new
service instance for each service scope, whereas for Application scope
we have single instance of the service class.

>  
> So, for example, if I had a HashMap that gets populated, read, and
> deleted by webservice calls, I need to use the concurrent libraries
> version of this HashMap.  Right?   Otherwise there could be contention
> issues.
I think that would be a good idea.
>  
> I am assuming the Axis framework does not provide ANY kind of
> protection against concurrency issues.
>  
> Are there any other issues I should keep in mind in developing the
> webservice due to the architecture of Axis?
I think stateless nature is something you need to keep in mind, do not
try to store values in your service class, instead use different
contexts provided by Axis2.

Thanks,
Deepal
>  
> Thanks...
>  


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



[Axis2] Architecture Question (Concurrency)

2009-08-11 Thread Marc Lefebvre
I am deploying a POJO webservice using Axis2 and Java2Wsdl, etc...   Its
all working nicely, but in developing the java code of my webservice I
had some questions about HOW internally Axis works so that I can be sure
of some possible issues that may arise.
 
Does Axis create a separate thread for each webservice call?  I am
assuming yes at this point.
 
If so, then, in the webservice any data structure that is accessed by
these threads must be thread safe.  Right?
 
So, for example, if I had a HashMap that gets populated, read, and
deleted by webservice calls, I need to use the concurrent libraries
version of this HashMap.  Right?   Otherwise there could be contention
issues.
 
I am assuming the Axis framework does not provide ANY kind of protection
against concurrency issues.
 
Are there any other issues I should keep in mind in developing the
webservice due to the architecture of Axis?
 
Thanks...
 


AAR deployment question

2009-08-05 Thread Steve Karlovitz


Hi, I have a question regarding deployment of AAR's.  I am trying  
to deploy to a clustered load-balanced environment with my Axis2  
WebApp deployed on Oracle AS.  I am using maven to build my AAR and  
would like to use maven for deployment as well.  I can not find any  
plugins to assist in this so I was wondering what your recommended  
best practices for clustered deployment would be.


Thanks in advance!

Steve






Question about JaxbSchemaGenerator

2009-07-22 Thread Sumit Shah
All,

 

I have a field named "identifier" in my Java class that I use as a
source to generate the wsdl. The strange thing is that the identifier
field is not getting generated in the wsdl. Other fields present in the
class are getting generated. All fields have the correct annotations.

 

I am wondering if "identifier" is some kind of reserved word that is
getting ignored by the JaxbSchemaGenerator or is anyone aware of this
problem.

 

Thanks

Sumit



Type metadata question

2009-07-17 Thread drwho

Hi,
I am in the porcess of converting an Axis projetc to Axis2 project when I
came across this class: 

org.apache.axis.description.TypeDesc

private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(Somclass.class, true);

Did a quick search and I found the following class in axis2-adb-0.94.jar
which is what I need:

org.apache.axis2.databinding.metadata.TypeDesc

However after version 0.94 that class is nowhere to be found.
Can anyone point to an equivalent class in the latest Axis2 version? Or
another way of getting type metadata? An example would be helpful...
Thanks,G
-- 
View this message in context: 
http://www.nabble.com/Type-metadata-question-tp24540876p24540876.html
Sent from the Axis - User mailing list archive at Nabble.com.



Server.userException question

2009-06-30 Thread Jacek Furmankiewicz
We have an old weblogic app still running on Axis 1.2...recently it got an
exception like this:

2009-06-30 04:03:58,411 INFO  org.apache.axis.enterprise  - Mapping
Exception to AxisFault
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.io.FileNotFoundException: File not found
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.io.FileNotFoundException:
File not found
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.zip.ZipFile.(Unknown Source)
at weblogic.utils.zip.ZipURLConnection.connect(Handler.java:75)
at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:53)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(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.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:146)

Our production guys run the servers with outbound connections BLOCKED
(only inbound are allowed).
Would this cause issues for Axis? I am guessing in this case it was
trying to reach the schema URL
(http://schemas.xmlsoap.org/soap/envelope/) and was unable to reach it...

Just trying to guess why this intermittent exceptions pops up every
now and then

P.S. I am more than willing to try to upgrade this old app to Axis
1.4, but maybe there is a requirement that servers
must allow outbound connections for Axis to work properly, which could
be the core issue here. Any clarifications
would be appreciated...

Thanks,
Jacek


Re: Next question...

2009-06-24 Thread Matthew Beldyk
It appears to be axis2-jaxws-1.4.1.jar

Here's how I figured that out on a unix system:

[10:02:23]bel...@mechagodzilla: ~/java_dev/trunk/libs/axis2-1.4.1
$ grep org.apache.axis2.jaxws.framework.JAXWSDeployer lib/*
Binary file lib/axis2-jaxws-1.4.1.jar matches

[10:02:39]bel...@mechagodzilla: ~/java_dev/trunk/libs/axis2-1.4.1
$ unzip -l lib/axis2-jaxws-1.4.1.jar |grep
org.apache.axis2.jaxws.framework.JAXWSDeployer
13373  08-13-08 17:07   org/apache/axis2/jaxws/framework/JAXWSDeployer.class

Best regards,
-Matt Beldyk
On Tue, Jun 23, 2009 at 9:12 PM, Shasta Willson wrote:
> Can someone tell me what .jar would contain
>
> org.apache.axis2.jaxws.framework.JAXWSDeployer
>
> I can't find it on the jar search engines I usually use.
>
> I'm getting a ClassNotFound in my logs, followed by an NPE without an
> obvious source a little later.  I'm guessing something isn't getting
> initialized correctly, even though the Deployer doesn't cause it to
> fail immediately, and maybe putting the correct jar in place would
> help.
>
> Thank you,
> Shasta
>



-- 
Calvin: Know what I pray for?
Hobbes: What?
Calvin: The strength to change what I can, the inability to accept
what I can't, and the incapacity to tell the difference.


Next question...

2009-06-23 Thread Shasta Willson
Can someone tell me what .jar would contain

org.apache.axis2.jaxws.framework.JAXWSDeployer

I can't find it on the jar search engines I usually use.

I'm getting a ClassNotFound in my logs, followed by an NPE without an
obvious source a little later.  I'm guessing something isn't getting
initialized correctly, even though the Deployer doesn't cause it to
fail immediately, and maybe putting the correct jar in place would
help.

Thank you,
Shasta


Question about "Undeclared namespace prefix "SOAP_ENV" Exception.

2009-06-02 Thread Duygu
Hi,

I will be very happy if you can help me.

In my application I use the web servise client of a platform. Wsdl style was
rpc/encoded. I converted the style of wsdl from rpc/encoded to
document/literal. Then I used axis2 to generate java codes.
When I call login method of the wsdl I get the
"org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException:
Undeclared namespace prefix "SOAP_ENV"" error.
The generated SOAP message is (with the help of debug mode I copied the
message) :


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

 
creprov
 ChangeMe

 


Can you help me? What is the problem?

Kind Regards.


-- 
Duygu Taylan


RE: Newbie question: how to plug axis2 engine into existing web application running in weblogic

2009-05-06 Thread Caristi, Joe
One way to do it:



1. Add the Axis Servlet to web.xml





  AxisServlet

   org.apache.axis2.transport.http.AxisServlet

  

  1





  AxisServlet

  /services/*







2. Create (or generate) WSDL that describes the service you plan to implement



3. Use the Axis2 wsdltojava tool to create the service skeleton, message 
receiver, and services.xml files.  Here's a reference for the tool:



http://wso2.org/library/tutorials/reference-guide-axis2-code-generation-parameters-part-1



4. Create a service folder structure under WEB-INF



WEB-INF

  Services

ServiceName

  META-INF



6. Add the WSDL and services.xml files to the META-INF folder in the newly 
created folder structure


7. Add the service skeleton and message receiver classes to your project

8. Add code to the service skeleton to make it do what you want

9. Add axis2 jars to the library path of your application.  You will definitely 
need
axis2-kernel.  You might need others.


From: Hu, Mary - ITG [mailto:mary...@jpmorgan.com]
Sent: Wednesday, May 06, 2009 1:28 PM
To: axis-user@ws.apache.org
Subject: Newbie question: how to plug axis2 engine into existing web 
application running in weblogic

Hi,

I have a web application running in weblogic server. Now I get requirement to 
expose the server side as a web service so that some user can skip the GUI part 
and directly interact with this app via web service.

I'm going to use axis2 as engine. I don't see any document about to plug the 
engine into an existing app. Any suggestions would be appreciated.

Thanks,

Mary Hu



This email is confidential and subject to important disclaimers and conditions 
including on offers for the purchase or sale of securities, accuracy and 
completeness of information, viruses, confidentiality, legal privilege, and 
legal entity disclaimers, available at 
http://www.jpmorgan.com/pages/disclosures/email.


STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at g...@whisolutions.com,
and destroy all copies of this message and any attachments.


Newbie question: how to plug axis2 engine into existing web application running in weblogic

2009-05-06 Thread Hu, Mary - ITG
Hi,

 

I have a web application running in weblogic server. Now I get
requirement to expose the server side as a web service so that some user
can skip the GUI part and directly interact with this app via web
service. 

 

I'm going to use axis2 as engine. I don't see any document about to plug
the engine into an existing app. Any suggestions would be appreciated.

 

Thanks,

 

Mary Hu  



This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

RE: Question about nillable=true and minOccurs=0

2009-04-24 Thread McCullough, Ryan
Thanks for the quick reply.

From: keith chapman [mailto:keithgchap...@gmail.com]
Sent: Friday, April 24, 2009 10:22 AM
To: axis-user@ws.apache.org
Subject: Re: Question about nillable=true and minOccurs=0

Yes it behaves in the same manner.

Thanks,
Keith.
On Fri, Apr 24, 2009 at 9:27 PM, McCullough, Ryan 
mailto:rmccullo...@rightnow.com>> wrote:

If you have an element on a complexType that has nillable="true" and 
minOccurs="0", will the element be de-serialized if the property on the soap 
stub is set to null?



For instance, let's say a portion of your XSD looks like this:















If in your generated soap stub object you set x = null and y = 20, will the 
de-serialized xml look like this:





20





I know that Axis 1.4 (not Axis2) will not de-serialize the element when it is 
set to null and has minOccurs="0". If need be I can dig up the specific code 
where this happens.



The question I have is if Axis2 also behaves this way?



Ryan McCullough | RightNow Technologies | Integration Tools Engineer

406-556-3162 office | Bozeman, MT | 
rmccullo...@rightnow.com<mailto:rmccullo...@rightnow.com> | 
http://www.rightnow.com<http://www.rightnow.com/>





--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Question about nillable=true and minOccurs=0

2009-04-24 Thread keith chapman
Yes it behaves in the same manner.

Thanks,
Keith.

On Fri, Apr 24, 2009 at 9:27 PM, McCullough, Ryan
wrote:

>  If you have an element on a complexType that has nillable=”true” and
> minOccurs=”0”, will the element be de-serialized if the property on the soap
> stub is set to null?
>
>
>
> For instance, let’s say a portion of your XSD looks like this:
>
> 
>
> 
>
>  maxOccurs="1" />
>
>  maxOccurs="1" />
>
> 
>
> 
>
>
>
> If in your generated soap stub object you set x = null and y = 20, will the
> de-serialized xml look like this:
>
> 
>
> 
>
> 20
>
> 
>
>
>
> I know that Axis 1.4 (not Axis2) will not de-serialize the element when it
> is set to null and has minOccurs=”0”. If need be I can dig up the specific
> code where this happens.
>
>
>
> The question I have is if Axis2 also behaves this way?
>
> * *
>
> *Ryan McCullough* | *RightNow Technologies* | Integration Tools Engineer
>
> 406-556-3162 office | Bozeman, MT | rmccullo...@rightnow.com |
> http://www.rightnow.com
>
>
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Question about nillable=true and minOccurs=0

2009-04-24 Thread McCullough, Ryan
If you have an element on a complexType that has nillable="true" and 
minOccurs="0", will the element be de-serialized if the property on the soap 
stub is set to null?

For instance, let's say a portion of your XSD looks like this:







If in your generated soap stub object you set x = null and y = 20, will the 
de-serialized xml look like this:


20


I know that Axis 1.4 (not Axis2) will not de-serialize the element when it is 
set to null and has minOccurs="0". If need be I can dig up the specific code 
where this happens.

The question I have is if Axis2 also behaves this way?

Ryan McCullough | RightNow Technologies | Integration Tools Engineer
406-556-3162 office | Bozeman, MT | 
rmccullo...@rightnow.com<mailto:rmccullo...@rightnow.com> | 
http://www.rightnow.com<http://www.rightnow.com/>



Re: Configuration Question about Changing PORT 6060

2009-04-14 Thread Andreas Veithen
According to the last axis2.xml you posted, the right URL should be as follows:

http://172.27.16.110:9666/axis2/services/Version

Andreas

On Tue, Apr 14, 2009 at 14:53, Herndl, Günther
 wrote:
> HTTP  but without Port 6060 Because this Port is in USE from IBM Security 
> Software
>
> -Ursprüngliche Nachricht-
> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Gesendet: Dienstag, 14. April 2009 14:52
> An: axis-user@ws.apache.org
> Betreff: Re: Configuration Question about Changing PORT 6060
>
> You are trying to access the TCP transport endpoint using HTTP. That will not 
> work. Do you want to use HTTP or (raw) TCP?
>
> Andreas
>
> On Tue, Apr 14, 2009 at 14:47, Herndl, Günther  
> wrote:
>> Change Port
>>
>> http://172.27.16.110:9667/axis2/services/Version
>>
>> Result:
>>
>> 
>> - > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>> - http://www.w3.org/2005/08/addressing";>
>>
>> http://www.w3.org/2005/08/addressing/soap/fault> n>
>>  
>> - 
>> - 
>>  
>>  com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' (code 71) in prolog; expected '<' at [row,col
>> {unknown-source}]: [1,1]
>>  
>>  
>>  
>>  
>>
>> -Ursprüngliche Nachricht-
>> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
>> Gesendet: Dienstag, 14. April 2009 14:43
>> An: axis-user@ws.apache.org
>> Betreff: Re: Configuration Question about Changing PORT 6060
>>
>> Note that you configured the same port number (9666) for HTTP and TCP.
>> This will not work.
>>
>> Andreas
>>
>> On Tue, Apr 14, 2009 at 14:31, Herndl, Günther  
>> wrote:
>>>
>>> Based on given Config-Files. I tried 
>>> "http://172.27.16.110:9666/axis2/services/Version"; and I get:
>>>
>>>  
>>> - >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>> - http://www.w3.org/2005/08/addressing";>
>>>
>>> http://www.w3.org/2005/08/addressing/soap/fault>> o
>>> n>
>>>  
>>> - 
>>> - 
>>>  
>>>  com.ctc.wstx.exc.WstxUnexpectedCharException:
>>> Unexpected character 'G' (code 71) in prolog; expected '<' at
>>> [row,col
>>> {unknown-source}]: [1,1]
>>>  
>>>  
>>>  
>>>  
>>>
>>> And Tomcat shows:
>>>
>>> INFO: Server startup in 1522 ms
>>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>>> character 'G' ( code 71) in prolog; expected '<'
>>>  at [row,col {unknown-source}]: [1,1]
>>> org.apache.axiom.om.OMException:
>>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' 
>>> (code 71) in prolog; expected '<'
>>>  at [row,col {unknown-source}]: [1,1]
>>>        at
>>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>>> a:249)
>>>        at
>>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>>> pe(StAXSOAPModelBuilder.java:156)
>>>        at
>>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
>>> ersion(StAXSOAPModelBuilder.java:128)
>>>        at
>>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
>>> APModelBuilder.java:93)
>>>        at
>>> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>>>
>>>        at
>>> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>>>        at
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
>>> Worker(ThreadPoolExecutor.java:1061)
>>>        at
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
>>> ker.run(ThreadPoolExecutor.java:575)
>>>        at java.lang.Thread.run(Thread.java:619)
>>> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>>> character 'G ' (code 71) in prolog; expected '<'
>>>  at [row,col {unknown-source}]: [1,1]
>>>        at 
>>> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
>>> 623)
>>>        at
>>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
>>> va:2047)
>>>        at
>>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStre

AW: Configuration Question about Changing PORT 6060

2009-04-14 Thread Herndl , Günther
HTTP  but without Port 6060 Because this Port is in USE from IBM Security 
Software

-Ursprüngliche Nachricht-
Von: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Gesendet: Dienstag, 14. April 2009 14:52
An: axis-user@ws.apache.org
Betreff: Re: Configuration Question about Changing PORT 6060

You are trying to access the TCP transport endpoint using HTTP. That will not 
work. Do you want to use HTTP or (raw) TCP?

Andreas

On Tue, Apr 14, 2009 at 14:47, Herndl, Günther  
wrote:
> Change Port
>
> http://172.27.16.110:9667/axis2/services/Version
>
> Result:
>
> 
> -  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> - http://www.w3.org/2005/08/addressing";>
>  
> http://www.w3.org/2005/08/addressing/soap/fault n>
>  
> - 
> - 
>  
>  com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> character 'G' (code 71) in prolog; expected '<' at [row,col 
> {unknown-source}]: [1,1]
>  
>  
>  
>  
>
> -Ursprüngliche Nachricht-
> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Gesendet: Dienstag, 14. April 2009 14:43
> An: axis-user@ws.apache.org
> Betreff: Re: Configuration Question about Changing PORT 6060
>
> Note that you configured the same port number (9666) for HTTP and TCP.
> This will not work.
>
> Andreas
>
> On Tue, Apr 14, 2009 at 14:31, Herndl, Günther  
> wrote:
>>
>> Based on given Config-Files. I tried 
>> "http://172.27.16.110:9666/axis2/services/Version"; and I get:
>>
>>  
>> - > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>> - http://www.w3.org/2005/08/addressing";>
>>
>> http://www.w3.org/2005/08/addressing/soap/fault> o
>> n>
>>  
>> - 
>> - 
>>  
>>  com.ctc.wstx.exc.WstxUnexpectedCharException: 
>> Unexpected character 'G' (code 71) in prolog; expected '<' at 
>> [row,col
>> {unknown-source}]: [1,1]
>>  
>>  
>>  
>>  
>>
>> And Tomcat shows:
>>
>> INFO: Server startup in 1522 ms
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' 
>> (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:249)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>> pe(StAXSOAPModelBuilder.java:156)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
>> ersion(StAXSOAPModelBuilder.java:128)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
>> APModelBuilder.java:93)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>>
>>        at
>> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
>> Worker(ThreadPoolExecutor.java:1061)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
>> ker.run(ThreadPoolExecutor.java:575)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
>> character 'G ' (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at 
>> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
>> 623)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
>> va:2047)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
>> er.java:506)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:161)
>>        ... 8 more
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' 
>> (code 71) in prolog; expected

Re: Configuration Question about Changing PORT 6060

2009-04-14 Thread Andreas Veithen
You are trying to access the TCP transport endpoint using HTTP. That
will not work. Do you want to use HTTP or (raw) TCP?

Andreas

On Tue, Apr 14, 2009 at 14:47, Herndl, Günther
 wrote:
> Change Port
>
> http://172.27.16.110:9667/axis2/services/Version
>
> Result:
>
> 
> - http://schemas.xmlsoap.org/soap/envelope/";>
> - http://www.w3.org/2005/08/addressing";>
>  http://www.w3.org/2005/08/addressing/soap/fault
>  
> - 
> - 
>  
>  com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> character 'G' (code 71) in prolog; expected '<' at [row,col 
> {unknown-source}]: [1,1]
>  
>  
>  
>  
>
> -Ursprüngliche Nachricht-
> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Gesendet: Dienstag, 14. April 2009 14:43
> An: axis-user@ws.apache.org
> Betreff: Re: Configuration Question about Changing PORT 6060
>
> Note that you configured the same port number (9666) for HTTP and TCP.
> This will not work.
>
> Andreas
>
> On Tue, Apr 14, 2009 at 14:31, Herndl, Günther  
> wrote:
>>
>> Based on given Config-Files. I tried 
>> "http://172.27.16.110:9666/axis2/services/Version"; and I get:
>>
>>  
>> - > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>> - http://www.w3.org/2005/08/addressing";>
>>
>> http://www.w3.org/2005/08/addressing/soap/fault> n>
>>  
>> - 
>> - 
>>  
>>  com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' (code 71) in prolog; expected '<' at [row,col
>> {unknown-source}]: [1,1]
>>  
>>  
>>  
>>  
>>
>> And Tomcat shows:
>>
>> INFO: Server startup in 1522 ms
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' 
>> (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:249)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>> pe(StAXSOAPModelBuilder.java:156)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
>> ersion(StAXSOAPModelBuilder.java:128)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
>> APModelBuilder.java:93)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>>
>>        at
>> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
>> Worker(ThreadPoolExecutor.java:1061)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
>> ker.run(ThreadPoolExecutor.java:575)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G ' (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at 
>> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
>> 623)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
>> va:2047)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
>> er.java:506)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:161)
>>        ... 8 more
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' 
>> (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:249)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>> pe(StAXSOAPModelBuilder.java:156)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV

AW: Configuration Question about Changing PORT 6060

2009-04-14 Thread Herndl , Günther
Change Port

http://172.27.16.110:9667/axis2/services/Version

Result:

 
- http://schemas.xmlsoap.org/soap/envelope/";>
- http://www.w3.org/2005/08/addressing";>
  http://www.w3.org/2005/08/addressing/soap/fault 
  
- 
- 
   
  com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
character 'G' (code 71) in prolog; expected '<' at [row,col {unknown-source}]: 
[1,1] 
   
  
  
   

-Ursprüngliche Nachricht-
Von: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Gesendet: Dienstag, 14. April 2009 14:43
An: axis-user@ws.apache.org
Betreff: Re: Configuration Question about Changing PORT 6060

Note that you configured the same port number (9666) for HTTP and TCP.
This will not work.

Andreas

On Tue, Apr 14, 2009 at 14:31, Herndl, Günther  
wrote:
>
> Based on given Config-Files. I tried 
> "http://172.27.16.110:9666/axis2/services/Version"; and I get:
>
>  
> -  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> - http://www.w3.org/2005/08/addressing";>
>  
> http://www.w3.org/2005/08/addressing/soap/fault n>
>  
> - 
> - 
>  
>  com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> character 'G' (code 71) in prolog; expected '<' at [row,col 
> {unknown-source}]: [1,1]
>  
>  
>  
>  
>
> And Tomcat shows:
>
> INFO: Server startup in 1522 ms
> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> character 'G' ( code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> org.apache.axiom.om.OMException: 
> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' (code 
> 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
> a:249)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
> pe(StAXSOAPModelBuilder.java:156)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
> ersion(StAXSOAPModelBuilder.java:128)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
> APModelBuilder.java:93)
>        at 
> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>
>        at 
> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
> Worker(ThreadPoolExecutor.java:1061)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
> ker.run(ThreadPoolExecutor.java:575)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> character 'G ' (code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
>        at 
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
> 623)
>        at 
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
> va:2047)
>        at 
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
> er.java:506)
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
> a:161)
>        ... 8 more
> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> character 'G' ( code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> org.apache.axiom.om.OMException: 
> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' (code 
> 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
> a:249)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
> pe(StAXSOAPModelBuilder.java:156)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
> ersion(StAXSOAPModelBuilder.java:128)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
> APModelBuilder.java:93)
>        at 
> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>
>        at 
> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
> Worker(ThreadPoolExecutor.java:1061)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
> ker.run(ThreadPoolExecutor.java:575)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: com.c

Re: Configuration Question about Changing PORT 6060

2009-04-14 Thread Andreas Veithen
;        ... 8 more
> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 
> 'G' (
> code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> org.apache.axiom.om.OMException: 
> com.ctc.wstx.exc.WstxUnexpectedCharException: U
> nexpected character 'G' (code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
> a:249)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
> pe(StAXSOAPModelBuilder.java:156)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
> ersion(StAXSOAPModelBuilder.java:128)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
> APModelBuilder.java:93)
>        at 
> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>
>        at org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
> Worker(ThreadPoolExecutor.java:1061)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
> ker.run(ThreadPoolExecutor.java:575)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 
> 'G
> ' (code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
>        at 
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
> 623)
>        at 
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
> va:2047)
>        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
> er.java:506)
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
> a:161)
>        ... 8 more
> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 
> 'G' (
> code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> org.apache.axiom.om.OMException: 
> com.ctc.wstx.exc.WstxUnexpectedCharException: U
> nexpected character 'G' (code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
> a:249)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
> pe(StAXSOAPModelBuilder.java:156)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
> ersion(StAXSOAPModelBuilder.java:128)
>        at 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
> APModelBuilder.java:93)
>        at 
> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>
>        at org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
> Worker(ThreadPoolExecutor.java:1061)
>        at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
> ker.run(ThreadPoolExecutor.java:575)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 
> 'G
> ' (code 71) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
>        at 
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
> 623)
>        at 
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
> va:2047)
>        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
> er.java:506)
>        at 
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
> a:161)
>        ... 8 more
>
>
> If I try "http://localhost:6060/axis2/services/Version"; I get:
>
> 
> -  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:ns1="urn:TCG-TSS">
> - 
> -  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>  SOAP-ENV:Client
>  HTTP GET method not implemented
>  
>  
>  
>  
>
> What did I wrong?
>
> Kind regards
>
> Günther Herndl
> _
> Günther Her

AW: Configuration Question about Changing PORT 6060

2009-04-14 Thread Herndl , Günther
impl.builder.StAXSOAPModelBuilder.(StAXSO
APModelBuilder.java:93)
at org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)

at org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
Worker(ThreadPoolExecutor.java:1061)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'G
' (code 71) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
623)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
va:2047)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
er.java:506)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
a:161)
... 8 more
[ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'G' (
code 71) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: U
nexpected character 'G' (code 71) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
a:249)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
pe(StAXSOAPModelBuilder.java:156)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
ersion(StAXSOAPModelBuilder.java:128)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSO
APModelBuilder.java:93)
at org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)

at org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
Worker(ThreadPoolExecutor.java:1061)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'G
' (code 71) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
623)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
va:2047)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
er.java:506)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
a:161)
... 8 more


If I try "http://localhost:6060/axis2/services/Version"; I get:

 
- http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:ns1="urn:TCG-TSS">
- 
- http://schemas.xmlsoap.org/soap/encoding/";>
  SOAP-ENV:Client 
  HTTP GET method not implemented 
   
  
  
  

What did I wrong?

Kind regards

Günther Herndl
_
Günther Herndl
Developer
E-Mail: guenther.her...@softcon.de
Tel: +49-89-785000-135
Fax: +49-89-785000-99  

SOFTCON IT-Service GmbH
Aidenbachstr. 42
D-81379 München   

Geschäftsführer: Brigitte Stuckart
Sitz der Gesellschaft: München
HRB München 115140
USt-ID-Nr. DE185446757
_


-Ursprüngliche Nachricht-
Von: Deepal Jayasinghe [mailto:dee...@opensource.lk] 
Gesendet: Dienstag, 14. April 2009 14:18
An: axis-user@ws.apache.org
Betreff: Re: Configuration Question about Changing PORT 6060

You can do that by editing axis2.xml, however as I can see you have this 
problem in client side.  you might have to create your client with custom 
axis2.xml.

http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
> Hi,
>  
> I use apache Axis2 on an laptop very succesfull. I tried to migrate my 
> examples on an IBM ThinkPad. Here I got errormessage and all services 
> and also the default version Services do not work. The Problem seems 
> to be that port 6060 is used from IBM's security software. I tried to 
> configure axis2.conf and apache to user an other port without success.
> What did I wrong?
>  
> Kind Regards
>  
> Günther Herndl
> Softcon

--
Thank you!


http://blogs.deepal.org
http://deepal.org




  
  
  
  
  
  
  

  
  
  

Re: Configuration Question about Changing PORT 6060

2009-04-14 Thread Deepal Jayasinghe
You can do that by editing axis2.xml, however as I can see you have this
problem in client side.  you might have to create your client with
custom axis2.xml.

http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
> Hi,
>  
> I use apache Axis2 on an laptop very succesfull. I tried to migrate my
> examples on an IBM ThinkPad. Here I got errormessage and all services
> and also the default version Services do not work. The Problem seems
> to be that port 6060 is used from IBM's security software. I tried to
> configure axis2.conf and apache to user an other port without success.
> What did I wrong?
>  
> Kind Regards
>  
> Günther Herndl
> Softcon

-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



Configuration Question about Changing PORT 6060

2009-04-14 Thread Herndl , Günther
Hi,
 
I use apache Axis2 on an laptop very succesfull. I tried to migrate my examples 
on an IBM ThinkPad. Here I got errormessage and all services and also the 
default version Services do not work. The Problem seems to be that port 6060 is 
used from IBM's security software. I tried to configure axis2.conf and apache 
to user an other port without success. What did I wrong?
 
Kind Regards
 
Günther Herndl
Softcon


Question about classloader

2009-04-13 Thread xu.ouyang
Dear, axis-user

There is a problem when I use axis2 1.4.1, hope you can help me to solve it.

Here is the problem details, I use the JBoss cache 3.0.2 with the axis2, and 
put the JBoss cache lib files into the service lib directory, then packed the 
service file in the axis2.war file and deployed in Tomcat 6.0.18. 

There is no problem with just one Tomcat node, but when I try to start up the 
second node, the following exception thrown:

org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException
at 
org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:148)
at 
org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:1012)
at 
org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:778)
at 
org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:632)
at 
org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:345)
at 
bupt.cache.jboss.BookCacheJBOSSImpl.(BookCacheJBOSSImpl.java:32)
at bupt.cache.BookService.(BookService.java:21)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at 
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.(DefaultSchemaGenerator.java:157)
at 
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:524)
at 
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:386)
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:102)
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:144)
at 
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)
at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
at 
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at 
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82)
at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstr

Question about AXIS2 deployment

2009-03-27 Thread dimension123
Hi,
It appears that axis2 requires you to place your webservice's source in
addition to ALL libraries or classes that that service interacts with under
webapps/axis2/WEB-INF/services.  My question is, is there anyway to tell
axis2 to look for the libraries somewhere else.   

The problem we are encountering is that we want to expose a service for a
rather large established application that is already deployed in production.
The webservice will delegate to existing code in this app. Moving the
existing app under the axis2 tree is not an option.  Is there anyway we can
deploy a service and perhaps set the classpath of that service such that it
can reference and make calls to the existing application?

thanks much



Re: Re: classloading question with axis2 and jboss

2009-03-26 Thread ban19

I just ran into a similar problem today due to a client set-up running both
Axis and Axis2 in Tomcat-- basically I need to override a class from Axis
with one from Axis2 in order to deploy my service. Geronimo seems to have
ways to overcome this by using "hidden-classes" (maybe? haven't really used
it); however, I do not see anything like this for Tomcat. Luckily, my
problem only arises during deployment, so I was able to fix this by making a
change in the Axis2 source org.apache.axis2.deployment.DeploymentClassLoader
class. 

Now the class loading is more like tomcat's webappX-- check the jars in the
service's lib folder first and if the class is not found there, move on to
search the parent...

I'm not sure changing the source is a feasible option for you since I
haven't looked at how much work changing other class loaders would be, nor
am I recommending a similar solution since it is far from a best-practice. I
am interested to see if there is a better way or work-around for this since
I am not that deep into Axis to know if my changes will ever affect anything
else.

Does anyone with more Axis2 experience have a solution?

-Brock


Lucente, Richard D wrote:
> 
> The issue has to do with class loading order.  After a serious round of
> debugging, what I found was that the tomcat classloader attempts to load
> the class then fails.  The parent classloader within JBoss attempts to
> load the class then fails.  Finally axis2 loads the class using the web
> service's classloader from the service.aar's lib directory.  In a
> generic case, this is how things worked in my deployment.
>  
> The issue I'm having is that I'm attempting to override the
> javax.xml.registry.* classes shipped with JBoss with updated interfaces
> to talk to a third party provider.  My service.aar contains a lib
> directory with the custom jars inside.  However, the classloading scheme
> described above causes the JBoss javax.xml.registry.* classes to always
> be found first.  I never can load from my classloader.  When I attempted
> to get the service classloader from the current MessageContext, I still
> got the tomcat classloader which failed and then delegated to JBoss.
> JBoss then loaded its implementation.
>  
> I'm using JBoss 4.0.5.GA and Axis2-1.2.
>  
> Can I change the classloading order so the service.aar's classloader
> goes first?
>  
> Help!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/classloading-question-with-axis2-and-jboss-tp16006230p22730644.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Question about WSSecurity in Axis2

2009-03-25 Thread Nandana Mihindukulasooriya
Hi Sudhir,

On Wed, Mar 25, 2009 at 8:58 PM, Sudhir Mongia wrote:

> Hi,
> We need to secure our web service. We got to know about rampart module to
> implement. Before looking into any kind of documentation for rampart, We
> were in impression that we need to do changes on server side and the client
> will come to know about the security related information through WSDL only.
>
> When we looked into that rampart, It changed our basic perception.Rampart
> documentation says "when using Rampart with Axis2, it must be engaged at
> both ends".Why so ?? If my client is Java  based then we can engage rampart
> module on client side. What if our client is .Net client and needs to access
> the web service?
>

 Nope, you can use WCF, Axis2/C, WSF/PHP or any other client. If you use
Axis2/Java client then you need to engage Rampart module at the client
side.

Is it the way it works? Then, How the policy and keys related information
> will be communicated to client?
>

The policy is annotated in the WSDL of the service. Key information has to
be configured through Rampart configuration.

I suggest you to take a look at following tutorials.

http://wso2.org/library/3190
http://wso2.org/library/3415

thanks,
Nandana

-- 
Nandana Mihindukulasooriya
WSO2 inc.

http://nandana83.blogspot.com/
http://www.wso2.org


Question about WSSecurity in Axis2

2009-03-25 Thread Sudhir Mongia
Hi,
We need to secure our web service. We got to know about rampart module to
implement. Before looking into any kind of documentation for rampart, We
were in impression that we need to do changes on server side and the client
will come to know about the security related information through WSDL only.

When we looked into that rampart, It changed our basic perception.Rampart
documentation says "when using Rampart with Axis2, it must be engaged at
both ends".Why so ?? If my client is Java  based then we can engage rampart
module on client side. What if our client is .Net client and needs to access
the web service?

Is it the way it works? Then, How the policy and keys related information
will be communicated to client?

Is there any other way we can implement WSSecurity in Axis2 ? So that we'll
be doing changes on server side and client will need to look into wsdl only.

I know I am putting questions marks after each sentence. But I can't help
it, this is what I think as of now and expecting you people to throw some
light on the issue.

Thanks,
Sudhir


Re: Silly question about wsdl2java

2009-03-18 Thread Sagara Gunathunga
Hi Edu,
I'm not sure is there any other option to change this behavior  or it
is  a bug with ADB code generation.

I think ADB code generation tool should have little knowledge before
it un-wrap the omplexType response messages to ensure that is it
possible to un-wrap or not.


Thanks ,


On Wed, Mar 18, 2009 at 5:41 PM, Eduard Martínez
 wrote:
> Thank you Sagara, I've tried your suggestion and it appears to work. But
> then the code generated is a void method when should return an object.
>
> Types are:
>
>             
>                 
>                     
>                          nillable="false" />
>                     
>                 
>             
>
>             
>                 
>                     
>                          nillable="false"/>
>                          nillable="false"/>
>                          type="tns:questionsGroup" minOccurs="0" maxOccurs="unbounded" />
>                     
>                 
>             
>
>
> Messages:
>
>     
>         
>     
>     
>         
>     
>
> And the operation:
>
>         
>             
>             
>         
>
> Without the -uw option, method signature is like this:
>
> public FullTest getTest(Idstr id);
>
> With the -uw option:
>
> public void getTest(String id);
>
>
> Cheers,
>
> Edu
> On Tue, Mar 17, 2009 at 1:02 PM, Sagara Gunathunga
>  wrote:
>>
>> Hi Edu,
>> adding  -uw  (un-wrapping) option will solve your problem.
>>
>> WSDL2Code -uri  -uw
>>
>> Thanks ,
>>
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Re: Silly question about wsdl2java

2009-03-18 Thread Eduard Martínez
Thank you Sagara, I've tried your suggestion and it appears to work. But
then the code generated is a void method when should return an object.

Types are:




















Messages:








And the operation:






Without the -uw option, method signature is like this:

public FullTest getTest(Idstr id);

With the -uw option:

public void getTest(String id);


Cheers,

Edu
On Tue, Mar 17, 2009 at 1:02 PM, Sagara Gunathunga <
sagara.gunathu...@gmail.com> wrote:

> Hi Edu,
> adding  -uw  (un-wrapping) option will solve your problem.
>
> WSDL2Code -uri  -uw
>
> Thanks ,
>
>


Question about rampart samples05, verification of the token issued

2009-03-17 Thread Håkon Sagehaug
Hi all,

I've got some question about rampart sample 05, using the sts service.

In the client the sts service is first called then the token is inserted in
the header and sent to the target service, my question is how does the
target service know that this token was issued by the sts service, is this
inside the SAML assertion?

I'm sorry but I can't get my head around this. I would guess that the
digital signature from the request to the target service from the client is
based on the soap body for that request  so this one

http://sample05.policy.samples.rampart.apache.org";>
Hello world1
 

And if the target service is validating the SAML assertion and seeing that
the signature info in this is signed by the sts, how would one approach it,
if the target service does not accept a SAML token, or maybe a SMAL 2 token.


Sorry if I did not phrase the question good enough, but hopefully someone
can debug it and answer.

My naive idea is something like this: get token form sts signed, copy it to
the head of the next request to the target service, the target service uses
the public key to verify the signature and extract the token and on the
basis of this performs authrization operation.
Is this correct way of thinking about it?

cheers, Håkon


-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: Silly question about wsdl2java

2009-03-17 Thread Sagara Gunathunga
Hi Edu,
adding  -uw  (un-wrapping) option will solve your problem.

WSDL2Code -uri  -uw

Thanks ,

On Tue, Mar 17, 2009 at 5:17 PM, Eduard Martínez
 wrote:
> Hi everyone,
>
> I'm a newbie with webservices and AXIS and I'm trying to build a webservice
> using wsdl2java. I want to make an operation that needs a string as a
> parameter.
> Then I've written this xml:
>
> (...)
> 
> 
> 
> (...)
>
> But the generated code doesn't compile. If I use this code instead:
>
> 
> http://example.org/foo";
> elementFormDefault="qualified">
>
> 
> 
> 
> 
> 
> 
> 
> (...)
> 
> 
> 
> (...)
>
> The code builds succesfully, but the string is encapsulated in an useless
> class. There is no better way to pass a simple parameter?
> Thanks,
>
> Edu
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Silly question about wsdl2java

2009-03-17 Thread Eduard Martínez
Hi everyone,

I'm a newbie with webservices and AXIS and I'm trying to build a webservice
using wsdl2java. I want to make an operation that needs a string as a
parameter.
Then I've written this xml:

(...)



(...)

But the generated code doesn't compile. If I use this code instead:


http://example.org/foo";
elementFormDefault="qualified">








(...)



(...)

The code builds succesfully, but the string is encapsulated in an useless
class. There is no better way to pass a simple parameter?
Thanks,

Edu


Question about an exception

2009-03-09 Thread Michael Frey
Hi,

there are a number of threads and hints about the "too many socket
exceptions" but none of them are working for me. Maybe somebody can
point me into the right direction?

I've built a web service client with axis (to be precise with axis/adb)
which sends a number of requests to a web service. So far I'm just using
 the adb generated stub and wrap some thread and command line parsing
stuff around it. My client crashes with the following exception:

"org.apache.axis2.AxisFault: Too many open files"

The output of "lsof -r -i TCP" states that there are 1019 file
descriptors in use by the client. About 95 % are in the state
"CLOSE_WAIT" while the others are "ESTABLISHED".

I've set setCallTransportCleanup in the constructor of the service stub
to true (with no effect).

Any hints? Thanks in advance!

Best regards,
 Michael



Re: Question about the order of elements in the response

2009-03-06 Thread keith chapman
The order of the elements is important cause the elements are within a
sequence block. It is not important if it was within a all block.

Thanks,
Keith.

On Fri, Mar 6, 2009 at 8:08 PM, DANIEL, Yves Marie <
yves-marie.dan...@capgemini.com> wrote:

>  Hi everyone !
>
> I am facing a problem of "order". I used that kind of wsdl to generate
> client and server side :
>
>
>  >
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> if the server side sens this response :
>
> * 
>   1234
>   1234
>  *
>
> I'm got an "unexpected element alias" message.
>
> I believed the order of elements at the same level had no importance ! Is
> the order important or is it the way I generated my code ?
>
> Yves-Marie
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Question about the order of elements in the response

2009-03-06 Thread DANIEL, Yves Marie
Hi everyone !
 
I am facing a problem of "order". I used that kind of wsdl to generate
client and server side :
 












 

if the server side sens this response :

 
  1234
  1234
 


I'm got an "unexpected element alias" message. 

I believed the order of elements at the same level had no importance !
Is the order important or is it the way I generated my code ?

 
Yves-Marie
This 
message contains information that may be privileged or confidential and is the 
property of the Capgemini Group. It is intended only for the person to whom it 
is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message in error, please notify the sender 
immediately and delete all copies of this message.


Re: Question about rampart samples05

2009-03-06 Thread Massimiliano Masi

Hi,

Quoting Håkon Sagehaug :


If I want to issue a my own token from the sts service I change in
policy.xml in the TokenType element from
...
is this correct?



Should be, isn't that? :-)


3.
What is the purpose of the TokenStorage?


For maintaining tokens in a kind of ``session''. Since web services
are stateless but sessionful, I'm using the tokenstorage in case
of multiple challenge/response


4.
Is there a way of looking at the implementation of the sts service?


Yes, in the Rahas module. I've a working example, if you do
precise questions, I can answer.

Ciao,

 Massimiliano


This message was sent using IMP, the Internet Messaging Program.




Question about rampart samples05

2009-03-06 Thread Håkon Sagehaug
Hi all

I've got some questions about sts sample in rampart number 5.

1.

If I want to issue a my own token from the sts service I change in
policy.xml in the TokenType element from

http://schemas.xmlsoap.org/ws/2005/02/trust";>
http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1


to
http://schemas.xmlsoap.org/ws/2005/02/trust
">urn:MyOwnToken
is this correct?

2.

Can I after this do as is the sample Client.java

 options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
loadPolicy("sample05/policy.xml"));
 options.setProperty(RampartMessageData.KEY_CUSTOM_ISSUED_TOKEN,
responseToken.getId());

And my token element will be inserted in the soap header of the message

3.
What is the purpose of the TokenStorage?

4.
Is there a way of looking at the implementation of the sts service?

cheers, Håkon


-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: Question about exposing a database as a web service...

2009-03-05 Thread sumedha rubasinghe
This link[1] contains a collection of HOWTOs on WSO2 Data Services solution.
/sumedha

[1] http://wso2.org/library/3183



On Thu, Mar 5, 2009 at 10:12 PM, keith chapman  wrote:
> Hi,
>
> Have you looked at the WSO2 DataServices Solution? [1]. It is a product
> thats built on Apache Axis2 which helps you expose a data base as a web
> service by simply following a wizard. I think using that will be more
> productive in your case. It is also released under the Apache License.
>
> Thanks,
> Keith.
>
> [1] http://wso2.org/projects/solutions/data-services/java
>
> On Thu, Mar 5, 2009 at 10:23 AM, riveraej  wrote:
>>
>> Hi everyone!
>>
>> I come to you asking for help. I'm trying to mount a web service which
>> consults a MySQL Database. I have already done the consult, but I can show
>> all data contained in the database, or I can show data according to
>> conditions setting these conditions manually in the code of the Java
>> Class.
>> Nevertheless I need to pass in some way to my class a value in order to
>> make
>> the SQL consult according to this.
>>
>> Talking in code terms... I have the next code:
>>
>> public class poDBService{
>>
>>        public OrderData orderDetails(){
>>                Connection conn = (Connection)
>> MessageContext.getCurrentMessageContext().getProperty(
>>                        poDataServiceLifeCycle.DB_CONNECTION);
>>                if (conn!=null){
>>                        try{
>>                                String SQL = "SELECT * FROM `porder` WHERE
>> order_id=1";
>>                                PreparedStatement statement =
>> conn.prepareStatement(SQL);
>>                                ResultSet result =
>> statement.executeQuery();
>>                                if (result.next()){
>>                                        OrderData orderData = new
>> OrderData();
>>
>>  orderData.setOrderId(result.getInt("order_id"));
>>
>>  orderData.setSoldTo(result.getInt("soldTo"));
>>
>>  orderData.setShipTo(result.getInt("shipTo"));
>>
>>
>> I can access to my service through my browser in the address:
>>
>> http://localhost:8080/axis2/services/poDataService/orderDetails
>>
>> It correctly displays the corresponding data contained in the table porder
>>
>> But I need to define my SQL sentence allowing to pass it the needed
>> parameter for the WHERE clause.
>> I already found that some people makes it with code like the next:
>>
>> public class poDBService{
>>
>>        public OrderData orderDetails(int id){
>>                Connection conn = (Connection)
>> MessageContext.getCurrentMessageContext().getProperty(
>>                        poDataServiceLifeCycle.DB_CONNECTION);
>>                if (conn!=null){
>>                        try{
>>                                String SQL = "SELECT * FROM `porder` WHERE
>> order_id = "  + id ;
>>                                PreparedStatement statement =
>> conn.prepareStatement(SQL);
>>                                ResultSet result =
>> statement.executeQuery();
>>                                if (result.next()){
>>                                        OrderData orderData = new
>> OrderData();
>>
>>  orderData.setOrderId(result.getInt("order_id"));
>>
>>  orderData.setSoldTo(result.getInt("soldTo"));
>>
>>  orderData.setShipTo(result.getInt("shipTo"));
>>
>>
>> With this code theoretically it would be possible to pass paramete id to
>> the
>> service in the URL address:
>>
>> http://localhost:8080/axis2/services/poDataService/orderDetails?id=1
>>
>> But when I try to do it in this way Axis returns in my web browser a Soap
>> message like this:
>>
>> 
>> unknown
>> 
>>
>> No error is thorwn in JBoss console window.
>>
>> I'm using:
>> - JBoss-4.2.2.G.A.
>> - Axis2-1.3
>> - jdk1.5.0_17
>> - mysql-connector-java-5.1.7
>> - MySQL Server 5.1
>>
>> Any ideas what is happening? or is there another way to do this?
>>
>> Thanks in advance!
>>
>> Ernesto J. Rivera
>> --
>> View this message in context:
>> http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22345253.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>


Re: Question about exposing a database as a web service...

2009-03-05 Thread keith chapman
Hi,

Have you looked at the WSO2 DataServices Solution? [1]. It is a product
thats built on Apache Axis2 which helps you expose a data base as a web
service by simply following a wizard. I think using that will be more
productive in your case. It is also released under the Apache License.

Thanks,
Keith.

[1] http://wso2.org/projects/solutions/data-services/java

On Thu, Mar 5, 2009 at 10:23 AM, riveraej  wrote:

>
> Hi everyone!
>
> I come to you asking for help. I'm trying to mount a web service which
> consults a MySQL Database. I have already done the consult, but I can show
> all data contained in the database, or I can show data according to
> conditions setting these conditions manually in the code of the Java Class.
> Nevertheless I need to pass in some way to my class a value in order to
> make
> the SQL consult according to this.
>
> Talking in code terms... I have the next code:
>
> public class poDBService{
>
>public OrderData orderDetails(){
>Connection conn = (Connection)
> MessageContext.getCurrentMessageContext().getProperty(
>poDataServiceLifeCycle.DB_CONNECTION);
>if (conn!=null){
>try{
>String SQL = "SELECT * FROM `porder` WHERE
> order_id=1";
>PreparedStatement statement =
> conn.prepareStatement(SQL);
>ResultSet result = statement.executeQuery();
>if (result.next()){
>OrderData orderData = new
> OrderData();
>
>  orderData.setOrderId(result.getInt("order_id"));
>
>  orderData.setSoldTo(result.getInt("soldTo"));
>
>  orderData.setShipTo(result.getInt("shipTo"));
>
>
> I can access to my service through my browser in the address:
>
> http://localhost:8080/axis2/services/poDataService/orderDetails
>
> It correctly displays the corresponding data contained in the table porder
>
> But I need to define my SQL sentence allowing to pass it the needed
> parameter for the WHERE clause.
> I already found that some people makes it with code like the next:
>
> public class poDBService{
>
>public OrderData orderDetails(int id){
>Connection conn = (Connection)
> MessageContext.getCurrentMessageContext().getProperty(
>poDataServiceLifeCycle.DB_CONNECTION);
>if (conn!=null){
>try{
>String SQL = "SELECT * FROM `porder` WHERE
> order_id = "  + id ;
>PreparedStatement statement =
> conn.prepareStatement(SQL);
>ResultSet result = statement.executeQuery();
>if (result.next()){
>OrderData orderData = new
> OrderData();
>
>  orderData.setOrderId(result.getInt("order_id"));
>
>  orderData.setSoldTo(result.getInt("soldTo"));
>
>  orderData.setShipTo(result.getInt("shipTo"));
>
>
> With this code theoretically it would be possible to pass paramete id to
> the
> service in the URL address:
>
> http://localhost:8080/axis2/services/poDataService/orderDetails?id=1
>
> But when I try to do it in this way Axis returns in my web browser a Soap
> message like this:
>
> 
> unknown
> 
>
> No error is thorwn in JBoss console window.
>
> I'm using:
> - JBoss-4.2.2.G.A.
> - Axis2-1.3
> - jdk1.5.0_17
> - mysql-connector-java-5.1.7
> - MySQL Server 5.1
>
> Any ideas what is happening? or is there another way to do this?
>
> Thanks in advance!
>
> Ernesto J. Rivera
> --
> View this message in context:
> http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22345253.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Question about exposing a database as a web service...

2009-03-05 Thread riveraej

Well I still have not done a client, I'm checking how this works and testing
it in my browser. The final target is to have another WS, especifically a
BPEL Process. This BPEL-WS will use the DB-WS because it will need to make
consults to the DB (obviously through the orderDetails service).

So... Can't I check it through my web browser just in order to test it
before I integrate it with the BPEL WS?

Thanks for your recommendation about the SQL sentence, I'm changing it :)

Kind regards,

Ernesto


m4rkuz-2 wrote:
> 
> 
> 
> let's see when you modify your code to accept the param id
> like this:
> 
> public OrderData orderDetails(int id)
> 
> You must do another client for the WS generated, query string is not the
> way
> to pass parameter to a web service.
> 
> 
> Regards,
> 
> 
> Marcus V. Sánchez D.
> __
> Enterprise Developer.
> Sun Certified Java Programmer (SCJP)
> 
> PD:
> this line : String SQL = "SELECT * FROM `porder` WHERE order_id = "  + id
> ;
> 
> is a HUGE security risk.
> 
> 
> 
> On Wed, Mar 4, 2009 at 11:53 PM, riveraej  wrote:
> 
>>
>> Hi everyone!
>>
>> I come to you asking for help. I'm trying to mount a web service which
>> consults a MySQL Database. I have already done the consult, but I can
>> show
>> all data contained in the database, or I can show data according to
>> conditions setting these conditions manually in the code of the Java
>> Class.
>> Nevertheless I need to pass in some way to my class a value in order to
>> make
>> the SQL consult according to this.
>>
>> Talking in code terms... I have the next code:
>>
>> public class poDBService{
>>
>>public OrderData orderDetails(){
>>Connection conn = (Connection)
>> MessageContext.getCurrentMessageContext().getProperty(
>>poDataServiceLifeCycle.DB_CONNECTION);
>>if (conn!=null){
>>try{
>>String SQL = "SELECT * FROM `porder` WHERE
>> order_id=1";
>>PreparedStatement statement =
>> conn.prepareStatement(SQL);
>>ResultSet result =
>> statement.executeQuery();
>>if (result.next()){
>>OrderData orderData = new
>> OrderData();
>>
>>  orderData.setOrderId(result.getInt("order_id"));
>>
>>  orderData.setSoldTo(result.getInt("soldTo"));
>>
>>  orderData.setShipTo(result.getInt("shipTo"));
>>
>>
>> I can access to my service through my browser in the address:
>>
>> http://localhost:8080/axis2/services/poDataService/orderDetails
>>
>> It correctly displays the corresponding data contained in the table
>> porder
>>
>> But I need to define my SQL sentence allowing to pass it the needed
>> parameter for the WHERE clause.
>> I already found that some people makes it with code like the next:
>>
>> public class poDBService{
>>
>>public OrderData orderDetails(int id){
>>Connection conn = (Connection)
>> MessageContext.getCurrentMessageContext().getProperty(
>>poDataServiceLifeCycle.DB_CONNECTION);
>>if (conn!=null){
>>try{
>>String SQL = "SELECT * FROM `porder` WHERE
>> order_id = "  + id ;
>>PreparedStatement statement =
>> conn.prepareStatement(SQL);
>>ResultSet result =
>> statement.executeQuery();
>>if (result.next()){
>>OrderData orderData = new
>> OrderData();
>>
>>  orderData.setOrderId(result.getInt("order_id"));
>>
>>  orderData.setSoldTo(result.getInt("soldTo"));
>>
>>  orderData.setShipTo(result.getInt("shipTo"));
>>
>>
>> With this code theoretically it would be possible to pass paramete id to
>> the
>> service in the URL address:
>>
>> http://localhost:8080/axis2/services/poDataService/orderDetails?id=1
>>
>> But when I try to do it in this way Axis returns in my web browser a Soap
>> message like this:
>>
>> 
>> unknown
>> 
>>
>> No error is thorwn in JBoss console window.
>>
>> I'm using:
>> - JBoss-4.2.2.G.A.
>> - Axis2-1.3
>> - jdk1.5.0_17
>> - mysql-connector-java-5.1.7
>> - MySQL Server 5.1
>>
>> Any ideas what is happening? or is there another way to do this?
>>
>> Thanks in advance!
>>
>> Ernesto J. Rivera
>> --
>> View this message in context:
>> http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22345253.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22353862.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Question about exposing a database as a web service...

2009-03-05 Thread riveraej

Well I still have not done a client, I'm checking how this works and testing
it in my browser. The final target is to have another WS, especifically a
BPEL Process. This BPEL-WS will use the DB-WS because it will need to make
consults to the DB (obviously through the orderDetails service).

So... Can't I check it through my web browser just in order to test it
before I integrate it with the BPEL WS?

Thanks for your recommendation about the SQL sentence, I'm changing it :)


m4rkuz-2 wrote:
> 
> 
> 
> let's see when you modify your code to accept the param id
> like this:
> 
> public OrderData orderDetails(int id)
> 
> You must do another client for the WS generated, query string is not the
> way
> to pass parameter to a web service.
> 
> 
> Regards,
> 
> 
> Marcus V. Sánchez D.
> __
> Enterprise Developer.
> Sun Certified Java Programmer (SCJP)
> 
> PD:
> this line : String SQL = "SELECT * FROM `porder` WHERE order_id = "  + id
> ;
> 
> is a HUGE security risk.
> 
> 
> 
> On Wed, Mar 4, 2009 at 11:53 PM, riveraej  wrote:
> 
>>
>> Hi everyone!
>>
>> I come to you asking for help. I'm trying to mount a web service which
>> consults a MySQL Database. I have already done the consult, but I can
>> show
>> all data contained in the database, or I can show data according to
>> conditions setting these conditions manually in the code of the Java
>> Class.
>> Nevertheless I need to pass in some way to my class a value in order to
>> make
>> the SQL consult according to this.
>>
>> Talking in code terms... I have the next code:
>>
>> public class poDBService{
>>
>>public OrderData orderDetails(){
>>Connection conn = (Connection)
>> MessageContext.getCurrentMessageContext().getProperty(
>>poDataServiceLifeCycle.DB_CONNECTION);
>>if (conn!=null){
>>try{
>>String SQL = "SELECT * FROM `porder` WHERE
>> order_id=1";
>>PreparedStatement statement =
>> conn.prepareStatement(SQL);
>>ResultSet result =
>> statement.executeQuery();
>>if (result.next()){
>>OrderData orderData = new
>> OrderData();
>>
>>  orderData.setOrderId(result.getInt("order_id"));
>>
>>  orderData.setSoldTo(result.getInt("soldTo"));
>>
>>  orderData.setShipTo(result.getInt("shipTo"));
>>
>>
>> I can access to my service through my browser in the address:
>>
>> http://localhost:8080/axis2/services/poDataService/orderDetails
>>
>> It correctly displays the corresponding data contained in the table
>> porder
>>
>> But I need to define my SQL sentence allowing to pass it the needed
>> parameter for the WHERE clause.
>> I already found that some people makes it with code like the next:
>>
>> public class poDBService{
>>
>>public OrderData orderDetails(int id){
>>Connection conn = (Connection)
>> MessageContext.getCurrentMessageContext().getProperty(
>>poDataServiceLifeCycle.DB_CONNECTION);
>>if (conn!=null){
>>try{
>>String SQL = "SELECT * FROM `porder` WHERE
>> order_id = "  + id ;
>>PreparedStatement statement =
>> conn.prepareStatement(SQL);
>>ResultSet result =
>> statement.executeQuery();
>>if (result.next()){
>>OrderData orderData = new
>> OrderData();
>>
>>  orderData.setOrderId(result.getInt("order_id"));
>>
>>  orderData.setSoldTo(result.getInt("soldTo"));
>>
>>  orderData.setShipTo(result.getInt("shipTo"));
>>
>>
>> With this code theoretically it would be possible to pass paramete id to
>> the
>> service in the URL address:
>>
>> http://localhost:8080/axis2/services/poDataService/orderDetails?id=1
>>
>> But when I try to do it in this way Axis returns in my web browser a Soap
>> message like this:
>>
>> 
>> unknown
>> 
>>
>> No error is thorwn in JBoss console window.
>>
>> I'm using:
>> - JBoss-4.2.2.G.A.
>> - Axis2-1.3
>> - jdk1.5.0_17
>> - mysql-connector-java-5.1.7
>> - MySQL Server 5.1
>>
>> Any ideas what is happening? or is there another way to do this?
>>
>> Thanks in advance!
>>
>> Ernesto J. Rivera
>> --
>> View this message in context:
>> http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22345253.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22353848.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Question about exposing a database as a web service...

2009-03-05 Thread m4rkuz


let's see when you modify your code to accept the param id
like this:

public OrderData orderDetails(int id)

You must do another client for the WS generated, query string is not the way
to pass parameter to a web service.


Regards,


Marcus V. Sánchez D.
__
Enterprise Developer.
Sun Certified Java Programmer (SCJP)

PD:
this line : String SQL = "SELECT * FROM `porder` WHERE order_id = "  + id ;

is a HUGE security risk.



On Wed, Mar 4, 2009 at 11:53 PM, riveraej  wrote:

>
> Hi everyone!
>
> I come to you asking for help. I'm trying to mount a web service which
> consults a MySQL Database. I have already done the consult, but I can show
> all data contained in the database, or I can show data according to
> conditions setting these conditions manually in the code of the Java Class.
> Nevertheless I need to pass in some way to my class a value in order to
> make
> the SQL consult according to this.
>
> Talking in code terms... I have the next code:
>
> public class poDBService{
>
>public OrderData orderDetails(){
>Connection conn = (Connection)
> MessageContext.getCurrentMessageContext().getProperty(
>poDataServiceLifeCycle.DB_CONNECTION);
>if (conn!=null){
>try{
>String SQL = "SELECT * FROM `porder` WHERE
> order_id=1";
>PreparedStatement statement =
> conn.prepareStatement(SQL);
>ResultSet result = statement.executeQuery();
>if (result.next()){
>OrderData orderData = new
> OrderData();
>
>  orderData.setOrderId(result.getInt("order_id"));
>
>  orderData.setSoldTo(result.getInt("soldTo"));
>
>  orderData.setShipTo(result.getInt("shipTo"));
>
>
> I can access to my service through my browser in the address:
>
> http://localhost:8080/axis2/services/poDataService/orderDetails
>
> It correctly displays the corresponding data contained in the table porder
>
> But I need to define my SQL sentence allowing to pass it the needed
> parameter for the WHERE clause.
> I already found that some people makes it with code like the next:
>
> public class poDBService{
>
>public OrderData orderDetails(int id){
>Connection conn = (Connection)
> MessageContext.getCurrentMessageContext().getProperty(
>poDataServiceLifeCycle.DB_CONNECTION);
>if (conn!=null){
>try{
>String SQL = "SELECT * FROM `porder` WHERE
> order_id = "  + id ;
>PreparedStatement statement =
> conn.prepareStatement(SQL);
>ResultSet result = statement.executeQuery();
>if (result.next()){
>OrderData orderData = new
> OrderData();
>
>  orderData.setOrderId(result.getInt("order_id"));
>
>  orderData.setSoldTo(result.getInt("soldTo"));
>
>  orderData.setShipTo(result.getInt("shipTo"));
>
>
> With this code theoretically it would be possible to pass paramete id to
> the
> service in the URL address:
>
> http://localhost:8080/axis2/services/poDataService/orderDetails?id=1
>
> But when I try to do it in this way Axis returns in my web browser a Soap
> message like this:
>
> 
> unknown
> 
>
> No error is thorwn in JBoss console window.
>
> I'm using:
> - JBoss-4.2.2.G.A.
> - Axis2-1.3
> - jdk1.5.0_17
> - mysql-connector-java-5.1.7
> - MySQL Server 5.1
>
> Any ideas what is happening? or is there another way to do this?
>
> Thanks in advance!
>
> Ernesto J. Rivera
> --
> View this message in context:
> http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22345253.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


Question about exposing a database as a web service...

2009-03-04 Thread riveraej

Hi everyone!

I come to you asking for help. I'm trying to mount a web service which
consults a MySQL Database. I have already done the consult, but I can show
all data contained in the database, or I can show data according to
conditions setting these conditions manually in the code of the Java Class.
Nevertheless I need to pass in some way to my class a value in order to make
the SQL consult according to this.

Talking in code terms... I have the next code:

public class poDBService{

public OrderData orderDetails(){
Connection conn = (Connection)
MessageContext.getCurrentMessageContext().getProperty(
poDataServiceLifeCycle.DB_CONNECTION);
if (conn!=null){
try{
String SQL = "SELECT * FROM `porder` WHERE 
order_id=1";
PreparedStatement statement = 
conn.prepareStatement(SQL);
ResultSet result = statement.executeQuery();
if (result.next()){
OrderData orderData = new OrderData();

orderData.setOrderId(result.getInt("order_id"));

orderData.setSoldTo(result.getInt("soldTo"));

orderData.setShipTo(result.getInt("shipTo"));


I can access to my service through my browser in the address:

http://localhost:8080/axis2/services/poDataService/orderDetails

It correctly displays the corresponding data contained in the table porder

But I need to define my SQL sentence allowing to pass it the needed
parameter for the WHERE clause.
I already found that some people makes it with code like the next:

public class poDBService{

public OrderData orderDetails(int id){
Connection conn = (Connection)
MessageContext.getCurrentMessageContext().getProperty(
poDataServiceLifeCycle.DB_CONNECTION);
if (conn!=null){
try{
String SQL = "SELECT * FROM `porder` WHERE 
order_id = "  + id ;
PreparedStatement statement = 
conn.prepareStatement(SQL);
ResultSet result = statement.executeQuery();
if (result.next()){
OrderData orderData = new OrderData();

orderData.setOrderId(result.getInt("order_id"));

orderData.setSoldTo(result.getInt("soldTo"));

orderData.setShipTo(result.getInt("shipTo"));


With this code theoretically it would be possible to pass paramete id to the
service in the URL address:

http://localhost:8080/axis2/services/poDataService/orderDetails?id=1

But when I try to do it in this way Axis returns in my web browser a Soap
message like this:


unknown


No error is thorwn in JBoss console window.

I'm using:
- JBoss-4.2.2.G.A.
- Axis2-1.3
- jdk1.5.0_17
- mysql-connector-java-5.1.7
- MySQL Server 5.1

Any ideas what is happening? or is there another way to do this?

Thanks in advance!

Ernesto J. Rivera
-- 
View this message in context: 
http://www.nabble.com/Question-about-exposing-a-database-as-a-web-service...-tp22345253p22345253.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: Axis2 SOAP XML response question

2009-02-24 Thread Shaon, ABS (Arif)
OK Thanks. But is the  element part of standard SOAP message
format?

 

E.g. http://www.w3.org/2003/05/soap-envelope";>

http://stfc.ac.uk";>
 ..

 

If it isn't, there should be a way to remove it without using another
service layer on top of Axis

 

Regards

Arif

 

From: keith chapman [mailto:keithgchap...@gmail.com] 
Sent: 24 February 2009 09:59
To: axis-user@ws.apache.org
Subject: Re: Axis2 SOAP XML response question

 

If you need to put it as XML, you will have to wrap it in a CDATA
element.

Thanks,
Keith.

On Tue, Feb 24, 2009 at 3:26 PM, Shaon, ABS (Arif)
 wrote:

Thanks for your quick response.  Does that mean there is no other way to
display XML as XML rather than text literals,  even if I don't want to
change the format of the SOAP response.

 

Regards

Arif

 

From: keith chapman [mailto:keithgchap...@gmail.com] 
Sent: 24 February 2009 03:54
To: axis-user@ws.apache.org
Subject: Re: Axis2 SOAP XML response question

 

Well you could do this by doing a contract first web service. It looks
like you are using the POJO approach and when u do that you have to live
with the schema that Axis2 would give you. Alternatively you could just
stick an ESB in front and run the response through an XSLT and format it
to the manner you require. This could be done in a single server if you
use the WSO2 Web Services Application Server [1] (This is a Web Services
runtime environment built on top of Axis2 and its available under the
Apache License).

Thanks,
Keith.

[1] http://wso2.org/projects/wsas/java

On Tue, Feb 24, 2009 at 8:25 AM, Shaon, ABS (Arif)
 wrote:

 

Hi Everyone,

 

I am running  a AXIS4 1.4.1 SOAP service that returns an XML document
encoded in the SOAP Body.  The response I get is the following:

 

 

http://www.w3.org/2003/05/soap-envelope";>

http://stfc.ac.uk";>
<?xml version="1.0" encoding="UTF-8"?>
<Capabilities
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns="http://www.opengis.net/wps/1.0.0";
xmlns:ows="http://www.opengis.net/ows/1.1";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
 
http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd";>
<ows:ServiceIdentification>..

 

But the response I would like is the following:

 

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

http://www.w3.org/1999/xlink";
xmlns:wps="http://www.opengis.net/wps/1.0.0";
xmlns:ows="http://www.opengis.net/ows/1.1";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
..\wpsGetCapabilities_response.xsd" updateSequence="1">
 
.

 

 

Any idea how I can get AXIS not to display XML tags as literals?

 

Many thanks for your help.

 

Regards

Arif

 




Scanned by iCritical. 




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

 




Scanned by iCritical. 




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


-- 

Scanned by iCritical.


Re: Axis2 SOAP XML response question

2009-02-24 Thread keith chapman
If you need to put it as XML, you will have to wrap it in a CDATA element.

Thanks,
Keith.

On Tue, Feb 24, 2009 at 3:26 PM, Shaon, ABS (Arif) wrote:

>  Thanks for your quick response.  Does that mean there is no other way to
> display XML as XML rather than text literals,  even if I don’t want to
> change the format of the SOAP response.
>
>
>
> Regards
>
> Arif
>
>
>
> *From:* keith chapman [mailto:keithgchap...@gmail.com]
> *Sent:* 24 February 2009 03:54
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Axis2 SOAP XML response question
>
>
>
> Well you could do this by doing a contract first web service. It looks like
> you are using the POJO approach and when u do that you have to live with the
> schema that Axis2 would give you. Alternatively you could just stick an ESB
> in front and run the response through an XSLT and format it to the manner
> you require. This could be done in a single server if you use the WSO2 Web
> Services Application Server [1] (This is a Web Services runtime environment
> built on top of Axis2 and its available under the Apache License).
>
> Thanks,
> Keith.
>
> [1] http://wso2.org/projects/wsas/java
>
> On Tue, Feb 24, 2009 at 8:25 AM, Shaon, ABS (Arif) 
> wrote:
>
>
>
> *Hi Everyone,*
>
>
>
> I am running  a AXIS4 1.4.1 SOAP service that returns an XML document
> encoded in the SOAP Body.  The response I get is the following:
>
>
>
>
>
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://stfc.ac.uk";>
> <?xml version="1.0" encoding="UTF-8"?> <
> Capabilities
> xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns="
> http://www.opengis.net/wps/1.0.0";
> xmlns:ows="http://www.opengis.net/ows/1.1";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> version="1.0.0"
> xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
>
> http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd";>
> <ows:ServiceIdentification>..
>
>
>
> But the response I would like is the following:
>
>
>
> http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi
> ="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
> http://www.w3.org/2001/XMLSchema";>
> 
>  version="1.0.0"xml:lang
> ="en-CA" xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:wps="
> http://www.opengis.net/wps/1.0.0"; xmlns:ows="
> http://www.opengis.net/ows/1.1"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://www.opengis.net/wps/1.0.0 
> ..\wpsGetCapabilities_response.xsd"updateSequence
> ="1">
>
> .
>
>
>
>
>
> Any idea how I can get AXIS not to display XML tags as literals?
>
>
>
> Many thanks for your help.
>
>
>
> Regards
>
> Arif
>
>
>  --
>
>
> Scanned by iCritical.
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
> --
>
> Scanned by iCritical.
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: Axis2 SOAP XML response question

2009-02-24 Thread Shaon, ABS (Arif)
Thanks for your quick response.  Does that mean there is no other way to
display XML as XML rather than text literals,  even if I don't want to
change the format of the SOAP response.

 

Regards

Arif

 

From: keith chapman [mailto:keithgchap...@gmail.com] 
Sent: 24 February 2009 03:54
To: axis-user@ws.apache.org
Subject: Re: Axis2 SOAP XML response question

 

Well you could do this by doing a contract first web service. It looks
like you are using the POJO approach and when u do that you have to live
with the schema that Axis2 would give you. Alternatively you could just
stick an ESB in front and run the response through an XSLT and format it
to the manner you require. This could be done in a single server if you
use the WSO2 Web Services Application Server [1] (This is a Web Services
runtime environment built on top of Axis2 and its available under the
Apache License).

Thanks,
Keith.

[1] http://wso2.org/projects/wsas/java

On Tue, Feb 24, 2009 at 8:25 AM, Shaon, ABS (Arif)
 wrote:

 

Hi Everyone,

 

I am running  a AXIS4 1.4.1 SOAP service that returns an XML document
encoded in the SOAP Body.  The response I get is the following:

 

 

http://www.w3.org/2003/05/soap-envelope";>

http://stfc.ac.uk";>
<?xml version="1.0" encoding="UTF-8"?>
<Capabilities
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns="http://www.opengis.net/wps/1.0.0";
xmlns:ows="http://www.opengis.net/ows/1.1";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
 
http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd";>
<ows:ServiceIdentification>..

 

But the response I would like is the following:

 

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

http://www.w3.org/1999/xlink";
xmlns:wps="http://www.opengis.net/wps/1.0.0";
xmlns:ows="http://www.opengis.net/ows/1.1";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
..\wpsGetCapabilities_response.xsd" updateSequence="1">
 
.

 

 

Any idea how I can get AXIS not to display XML tags as literals?

 

Many thanks for your help.

 

Regards

Arif

 




Scanned by iCritical. 




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


-- 

Scanned by iCritical.


Re: Axis2 SOAP XML response question

2009-02-23 Thread keith chapman
Well you could do this by doing a contract first web service. It looks like
you are using the POJO approach and when u do that you have to live with the
schema that Axis2 would give you. Alternatively you could just stick an ESB
in front and run the response through an XSLT and format it to the manner
you require. This could be done in a single server if you use the WSO2 Web
Services Application Server [1] (This is a Web Services runtime environment
built on top of Axis2 and its available under the Apache License).

Thanks,
Keith.

[1] http://wso2.org/projects/wsas/java

On Tue, Feb 24, 2009 at 8:25 AM, Shaon, ABS (Arif) wrote:

>
>
> *Hi Everyone,*
>
>
>
> I am running  a AXIS4 1.4.1 SOAP service that returns an XML document
> encoded in the SOAP Body.  The response I get is the following:
>
>
>
>
>
> http://www.w3.org/2003/05/soap-envelope";>
> 
> http://stfc.ac.uk";>
>  <
> Capabilities
> xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns="
> http://www.opengis.net/wps/1.0.0";
> xmlns:ows="http://www.opengis.net/ows/1.1";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> version="1.0.0"
> xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
>
> http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd";>
> ..
>
>
>
> But the response I would like is the following:
>
>
>
> http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi
> ="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
> http://www.w3.org/2001/XMLSchema";>
> 
>  version="1.0.0"xml:lang
> ="en-CA" xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:wps="
> http://www.opengis.net/wps/1.0.0"; xmlns:ows="
> http://www.opengis.net/ows/1.1"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://www.opengis.net/wps/1.0.0 
> ..\wpsGetCapabilities_response.xsd"updateSequence
> ="1">
>
> .
>
>
>
>
>
> Any idea how I can get AXIS not to display XML tags as literals?
>
>
>
> Many thanks for your help.
>
>
>
> Regards
>
> Arif
>
> --
>
> Scanned by iCritical.
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Axis2 SOAP XML response question

2009-02-23 Thread Shaon, ABS (Arif)
 

Hi Everyone,

 

I am running  a AXIS4 1.4.1 SOAP service that returns an XML document
encoded in the SOAP Body.  The response I get is the following:

 

 

http://www.w3.org/2003/05/soap-envelope";>

http://stfc.ac.uk";>


..

 

But the response I would like is the following:

 

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

http://www.w3.org/1999/xlink";
xmlns:wps="http://www.opengis.net/wps/1.0.0";
xmlns:ows="http://www.opengis.net/ows/1.1";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
..\wpsGetCapabilities_response.xsd" updateSequence="1">
 
.

 

 

Any idea how I can get AXIS not to display XML tags as literals?

 

Many thanks for your help.

 

Regards

Arif


-- 

Scanned by iCritical.


RE: ServiceName question

2009-02-18 Thread Cromer, Rick
After doing a better job of reading the CXF documentation, I found out
what I was doing wrong, the Service Name is set using the serviceName
attribute of the @Webservice annotation. The name attribute which I was
trying to use is for the wsdl:portType.

 

name - Specifies the name of the service interface. This property is
mapped to the name attribute of the wsdl:portType element that defines
the service's interface in a WSDL contract. The default is to
appendPortType to the name of the implementation class.

 

serviceName - Specifies the name of the published service. This property
is mapped to the name attribute of the wsdl:service element that defines
the published service. The default is to use the name of the service's
implementation class. Note: Not allowed on the SEI

 

Regards,

Rick Cromer



From: keith chapman [mailto:keithgchap...@gmail.com] 
Sent: Wednesday, February 18, 2009 12:20 AM
To: axis-user@ws.apache.org
Subject: Re: ServiceName question

 

Can you try dropping the @WebService annotation. You can certainly
control the name of the service using the name Attribute on the
services.xml.

Thanks,
Keith.

On Wed, Feb 18, 2009 at 1:44 AM, Cromer, Rick 
wrote:

I'm having problems controlling my ServiceName.  This is important since
I'm trying to migrate Axis1 to Axis2 and need to preserve the service
name to minimize the impact on the SOAP clients.  I set the WebService
name attribute in the service class to "Address", the class name of the
service is "AddressService" and the service name attribute in the
services.xml file to "Address".  What Axis appears to be doing it
setting the Service name to ClassName + "Service".  Why can't I control
the service name from the class @WebService attribute name value?

 

package book.sample;

 

import javax.jws.WebService;

 

@WebService (name = "Address")

public class AddressService {

 

public Address getAddress(String name) {

 

Address address = new Address();

address.setStreet("Street");

address.setNumber("Number 15");

return address;

}

}


Content of the services.xml file




book.sample.AddressService




 


AddressServiceService
<http://localhost:8080/axis2/services/AddressServiceService?wsdl> 


Service EPR : http://localhost:8080/axis2/services/AddressServiceService


Service Description : Address


Service Status : Active
Available Operations

*   getAddress

Rick

 




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org



Re: ServiceName question

2009-02-17 Thread keith chapman
Can you try dropping the @WebService annotation. You can certainly control
the name of the service using the name Attribute on the services.xml.

Thanks,
Keith.

On Wed, Feb 18, 2009 at 1:44 AM, Cromer, Rick wrote:

>  *I'm having problems controlling my ServiceName.  This is important since
> I'm trying to migrate Axis1 to Axis2 and need to preserve the service name
> to minimize the impact on the SOAP clients.  I set the WebService name
> attribute in the service class to "Address", the class name of the service
> is "AddressService" and the service name attribute in the services.xml file
> to "Address".  What Axis appears to be doing it setting the Service name to
> ClassName + "Service".  Why can't I control the service name from the class
> @WebService attribute name value?*
>
> * *
>
> *package* book.sample;
>
>
>
> *import* javax.jws.WebService;
>
>
>
> @WebService (name = "Address")
>
> *public* *class* AddressService {
>
>
>
> *public* Address getAddress(String name) {
>
>
>
> Address address = *new* Address();
>
> address.setStreet("Street");
>
> address.setNumber("Number 15");
>
> *return* address;
>
> }
>
> }
> *Content of the services.xml file*
>
> 
>
> 
> book.sample.AddressService
>
> 
> * * 
> *AddressServiceService
> *
>
> Service EPR : http://localhost:8080/axis2/services/AddressServiceService
> *Service Description : Address*
>
> *Service Status : Active*
> *Available Operations*
>
>- getAddress
>
> Rick
>
>
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


ServiceName question

2009-02-17 Thread Cromer, Rick
I'm having problems controlling my ServiceName.  This is important since
I'm trying to migrate Axis1 to Axis2 and need to preserve the service
name to minimize the impact on the SOAP clients.  I set the WebService
name attribute in the service class to "Address", the class name of the
service is "AddressService" and the service name attribute in the
services.xml file to "Address".  What Axis appears to be doing it
setting the Service name to ClassName + "Service".  Why can't I control
the service name from the class @WebService attribute name value?

 

package book.sample;

 

import javax.jws.WebService;

 

@WebService (name = "Address")

public class AddressService {

 

public Address getAddress(String name) {

 

Address address = new Address();

address.setStreet("Street");

address.setNumber("Number 15");

return address;

}

}


Content of the services.xml file




book.sample.AddressService




 


AddressServiceService
 


Service EPR : http://localhost:8080/axis2/services/AddressServiceService


Service Description : Address


Service Status : Active
Available Operations

*   getAddress

Rick

 



Re: Simple question with Rampart setup

2009-01-30 Thread Nandana Mihindukulasooriya
Hi,
  Hope these two tutorials will help you to get started. At the beginning,
they explain how to set up Rampart in the server side and the client side.

http://wso2.org/library/3190
https://wso2.org/library/3415

Once you are familiar with basic stuff, please go through articles/tutorials
listed here for more information.

http://ws.apache.org/rampart/articles.html

thanks,
nandana


On Sat, Jan 31, 2009 at 1:28 AM, Nan Null  wrote:

> When use Rampart, it says for client configuration, use axis2.xml.
> Where do I get a base axis2.xml file.  I know I can create one, but
> what does it have to contain beside the Rampart's stuff?  Can I just
> blindly copy one of the axis2.xml from the examples folders?  I saw
> there is an axis2.xml file inside axis2-kernel -1.4.1.jar.  Should I
> take that file and add Rampart stuff?
>
> For a client that sits on a web app, where do I put "modules" folder,
> if I don't have to configure it (use default)?  Thanks.
>



-- 
Nandana Mihindukulasooriya
WSO2 inc.

http://nandana83.blogspot.com/
http://www.wso2.org


Simple question with Rampart setup

2009-01-30 Thread Nan Null
When use Rampart, it says for client configuration, use axis2.xml.
Where do I get a base axis2.xml file.  I know I can create one, but
what does it have to contain beside the Rampart's stuff?  Can I just
blindly copy one of the axis2.xml from the examples folders?  I saw
there is an axis2.xml file inside axis2-kernel -1.4.1.jar.  Should I
take that file and add Rampart stuff?

For a client that sits on a web app, where do I put "modules" folder,
if I don't have to configure it (use default)?  Thanks.


Re: webservice design question

2009-01-16 Thread rouble
Hi All,

So, Sameera set me on the right path, and I figured I could create a
singleton shared object to service all requests, in axis, by adding:
  

My next question is, I noticed the constructor of the web service is
called only when a method is invoked. Is there a way I can kick off
the webservice sooner? I need to execute some startup code.

In other words, is there a way to start and stop a axis web service
(that has application scope)?

Cheers
Rouble

On Fri, Jan 16, 2009 at 1:05 AM, rouble  wrote:
> Hi Sameera,
>
> Thanks -- that looks like what I was looking for.
>
> However, I forgot to mention something, I am using Axis, and not
> Axis2. Is there a way to define these scopes in Axis also? I am
> particularly interested in the Appliation scope.
>
> Cheers
> rouble
>
> On Fri, Jan 16, 2009 at 12:29 AM, Sameera Jayasoma
>  wrote:
>>
>>
>> On Fri, Jan 16, 2009 at 1:27 AM, rouble  wrote:
>>>
>>> Hi All,
>>>
>>> I have a question on the basics of deploying web services.
>>>
>>> I want to understand, when tomcat deploys a service, does it create
>>> one instance of the class specified in className (in my case,
>>> ServiceBindingImpl) -- and continuously call the methods on that
>>> instance? Or does it create a new instance of className for every new
>>> connection?
>>
>> This behavior is  depend on the Axis2 session scope that you have used.
>> Please have a look at the following article.
>>
>> http://wso2.org/library/231
>>>
>>>
>>> For my application, I have a soap message coming in, that needs to be
>>> communicated to a main server process.
>>>
>>> I have written a axis based tomcat web service to receive the soap
>>> message, and it works great. Now in the business logic of the allowed
>>> method, I have the webservice send the soap message, using socket IPC,
>>> to a main server process.
>>>
>>> Now, I am wondering if I can move the entire server process into the
>>> tomcat webservice. I am trying to cut down on the number of components
>>> and the socket IPC.
>>>
>>> More specifically, does it make sense to have ServiceBindingImpl be my
>>> main server process? Or is there another way to have the server
>>> process be part of the tomcat webservice.
>>>
>>> I am wondering if someone can direct me on the best way to design this.
>>>
>>> TIA,
>>> rouble
>>
>>
>>
>> --
>> Sameera
>> http://sameera-jayasoma.blogspot.com/
>> http://www.flickr.com/photos/sameera-jayasoma
>>
>
>
>
> --
> this message is composed of 100% recycled ascii
>



-- 
this message is composed of 100% recycled ascii


Re: webservice design question

2009-01-15 Thread rouble
Hi Sameera,

Thanks -- that looks like what I was looking for.

However, I forgot to mention something, I am using Axis, and not
Axis2. Is there a way to define these scopes in Axis also? I am
particularly interested in the Appliation scope.

Cheers
rouble

On Fri, Jan 16, 2009 at 12:29 AM, Sameera Jayasoma
 wrote:
>
>
> On Fri, Jan 16, 2009 at 1:27 AM, rouble  wrote:
>>
>> Hi All,
>>
>> I have a question on the basics of deploying web services.
>>
>> I want to understand, when tomcat deploys a service, does it create
>> one instance of the class specified in className (in my case,
>> ServiceBindingImpl) -- and continuously call the methods on that
>> instance? Or does it create a new instance of className for every new
>> connection?
>
> This behavior is  depend on the Axis2 session scope that you have used.
> Please have a look at the following article.
>
> http://wso2.org/library/231
>>
>>
>> For my application, I have a soap message coming in, that needs to be
>> communicated to a main server process.
>>
>> I have written a axis based tomcat web service to receive the soap
>> message, and it works great. Now in the business logic of the allowed
>> method, I have the webservice send the soap message, using socket IPC,
>> to a main server process.
>>
>> Now, I am wondering if I can move the entire server process into the
>> tomcat webservice. I am trying to cut down on the number of components
>> and the socket IPC.
>>
>> More specifically, does it make sense to have ServiceBindingImpl be my
>> main server process? Or is there another way to have the server
>> process be part of the tomcat webservice.
>>
>> I am wondering if someone can direct me on the best way to design this.
>>
>> TIA,
>> rouble
>
>
>
> --
> Sameera
> http://sameera-jayasoma.blogspot.com/
> http://www.flickr.com/photos/sameera-jayasoma
>



-- 
this message is composed of 100% recycled ascii


Re: webservice design question

2009-01-15 Thread Sameera Jayasoma
On Fri, Jan 16, 2009 at 1:27 AM, rouble  wrote:

> Hi All,
>
> I have a question on the basics of deploying web services.
>
> I want to understand, when tomcat deploys a service, does it create
> one instance of the class specified in className (in my case,
> ServiceBindingImpl) -- and continuously call the methods on that
> instance? Or does it create a new instance of className for every new
> connection?


This behavior is  depend on the Axis2 session scope that you have used.
Please have a look at the following article.

http://wso2.org/library/231

>
>
> For my application, I have a soap message coming in, that needs to be
> communicated to a main server process.
>
> I have written a axis based tomcat web service to receive the soap
> message, and it works great. Now in the business logic of the allowed
> method, I have the webservice send the soap message, using socket IPC,
> to a main server process.
>
> Now, I am wondering if I can move the entire server process into the
> tomcat webservice. I am trying to cut down on the number of components
> and the socket IPC.
>
> More specifically, does it make sense to have ServiceBindingImpl be my
> main server process? Or is there another way to have the server
> process be part of the tomcat webservice.
>
> I am wondering if someone can direct me on the best way to design this.
>
> TIA,
> rouble
>



-- 
Sameera
http://sameera-jayasoma.blogspot.com/
http://www.flickr.com/photos/sameera-jayasoma


webservice design question

2009-01-15 Thread rouble
Hi All,

I have a question on the basics of deploying web services.

I want to understand, when tomcat deploys a service, does it create
one instance of the class specified in className (in my case,
ServiceBindingImpl) -- and continuously call the methods on that
instance? Or does it create a new instance of className for every new
connection?

For my application, I have a soap message coming in, that needs to be
communicated to a main server process.

I have written a axis based tomcat web service to receive the soap
message, and it works great. Now in the business logic of the allowed
method, I have the webservice send the soap message, using socket IPC,
to a main server process.

Now, I am wondering if I can move the entire server process into the
tomcat webservice. I am trying to cut down on the number of components
and the socket IPC.

More specifically, does it make sense to have ServiceBindingImpl be my
main server process? Or is there another way to have the server
process be part of the tomcat webservice.

I am wondering if someone can direct me on the best way to design this.

TIA,
rouble


Re: enableMTOM=optional setting question - MTOM-aware clients vs. non-MTOM aware clients

2009-01-08 Thread Thilina Gunarathne
Hi,
When EnableMTOM is set to "optional", Axis2 will reply back using MTOM if it
received a MTOM message or otherwise if it did not receive a MTOM message.
Receiving a MTOM message does not necessaraly mean that the message needs to
have attachments. It can just be that the SOAP message is just wrapped by
MTOM (MIME+required content type headers). Your MTOM enables clients can
send the requests using MTOM and get back the attachment using MTOM, while
other clients will get a base64encoded version of the data.

thanks,
Thilina

PS: According to what I have heard, above behaviour is similar to .net
behaviour.

On Thu, Jan 8, 2009 at 12:57 PM, Matt Friedman wrote:

> Hi,
>
> We are doing some tests using enableMTOM=optional. I did search the
> lists quite a bit, but I'm still a bit confused about the following.
>
> We originally built the service for MTOM aware clients but our
> assumption (as often happens) turns out to be incorrect. Some of the
> clients will not be MTOM aware whatsoever. In fact some of the clients
> will be WebSphere web service clients (non Axis2 / non-MTOM).  The
> methods in question return PDF files along with other information.
>
> So, the question is: if we set enableMTOM=optional and we have some
> clients that are MTOM aware and some that are MTOM oblivious, will we
> get the expected result?
>
> In my mind the expected result would be that the non-MTOM clients will
> get base64 responses, while the MTOM aware clients will get the
> optimized MIME responses. Is this correct?
>
> Also, if the above is true, then how does the service determine if the
> client is MTOM aware or not?
>
> Many thanks,
>
> --
> -- Matt Friedman
>



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


enableMTOM=optional setting question - MTOM-aware clients vs. non-MTOM aware clients

2009-01-08 Thread Matt Friedman
Hi,

We are doing some tests using enableMTOM=optional. I did search the
lists quite a bit, but I'm still a bit confused about the following.

We originally built the service for MTOM aware clients but our
assumption (as often happens) turns out to be incorrect. Some of the
clients will not be MTOM aware whatsoever. In fact some of the clients
will be WebSphere web service clients (non Axis2 / non-MTOM).  The
methods in question return PDF files along with other information.

So, the question is: if we set enableMTOM=optional and we have some
clients that are MTOM aware and some that are MTOM oblivious, will we
get the expected result?

In my mind the expected result would be that the non-MTOM clients will
get base64 responses, while the MTOM aware clients will get the
optimized MIME responses. Is this correct?

Also, if the above is true, then how does the service determine if the
client is MTOM aware or not?

Many thanks,

-- 
-- Matt Friedman


RE: rampart question

2008-12-31 Thread Samant, Ajay R
I have a question on how to use rampart with Axis2 client.

1. In all the examles  of rampart I have seen userid hardcoded in
xmlfile.My client is a Servlet  running inside WebSphere App Server 6.1
using Axis client stub. How do I get userid  of my current active thread
and then use that userid in rampart.

2. Password is optional element in WS Security spec. If that is true
then is it possible not to send password at all?


- Ajay Samant 


- Ajay Samant

GWM Shared Services - Architecture || (347) 648 3033 ||
ajay.sam...@citi.com 

 
-Original Message-
From: Deepal jayasinghe [mailto:deep...@gmail.com] 
Sent: Monday, December 29, 2008 12:02 PM
To: axis-user@ws.apache.org
Subject: Re: client side modules

Well for the client side you can just drop the modules into the class
path and engage them at the runtime. In that case you do not need to
worry about creating a configuration context.

Thank you!
Deepal
> Many thanks, I didn't spot that particular flavour of method 
> createConfigurationContext
>  
> Paul
>
> --
> --
> *From:* Eran Chinthaka [mailto:eran.chinth...@gmail.com]
> *Sent:* 29 December 2008 16:42
> *To:* axis-user@ws.apache.org
> *Subject:* Re: client side modules
>
> ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(
>
> null, pathToYourRepository);
>
> SimpleHTTPServer simpleServer = new SimpleHTTPServer(configContext, 
> );
>
> simpleServer.start();
>
>
>
> With Mettha,
> Eran Chinthaka
>
> 
> Health is the greatest gift; contentment is the greatest wealth; 
> trusting is the best relationship; nirvana is the highest joy. - 
> Dhammapada
>
>
> On Mon, Dec 29, 2008 at 11:14 AM, Paul French  <mailto:paul.fre...@kirona.com>> wrote:
>
> Can anyone give me any pointers how to deploy a module on the
> client side?
>  
> If I create a client stub to call a web service from within a web
> application that also provides an axis2 web service then I believe
> all I need to do is re-use the configuration context created by
> the web service? Is this correct?
>  
> What about in a standalone java application. How do I deploy a
> module in that scenario. Since I do not have a web application I
> don't have a WEB-INF/modules/ file structure?
>  
> I'm a bit lost, any help will be appreciated.
>  
> Thanks
> Paul
>  
>  
>
>


--
Thank you!


http://blogs.deepal.org
http://deepal.org



Re: Axis2 Java code generation question.

2008-12-24 Thread Amila Suriarachchi
On 12/24/08, VeeR Six  wrote:
> Hi,
>
> I have the following definition in an XSD:
>
> 
> 
> Standard tariff ID
> 
> 
> 
> 
>  
>
> When I generate the Java code I get the TariffID type as expected, but in
> the generated setTariffID(int) method, there is no code that captures the
>  restriction:
>
> /**
>  * Auto generated setter method
>  * @param param TariffID
>  */
>   public void setTariffID(int param){
> this.localTariffID=param;
>   }
>
> If I then add either  or  and
>  to the XSD then these restrictions are captured in the
> generated code.  For example, this:
>
> 
> 
> Standard tariff ID
> 
> 
> 
> 
> 
> 
> 
>
> results in the following Java code being generated:
>
> /**
>  * Auto generated setter method
>  * @param param TariffID
>  */
> public void setTariffID(int param){
>   if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param,
> "999") <= 0){
> this.localTariffID=param;
>   }
>   else {
> throw new java.lang.RuntimeException();
>   }
>   if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "0")
>>= 0){
> this.localTariffID=param;
>   }
>   else {
> throw new java.lang.RuntimeException();
>   }
> }
>
> My question then is this, why is the  restriction not
> captured in the code  generated by Axis2? Is this expected behaviour or is
> it a bug?

Bug. This is still not supported by ADB. please log a jira.
Try to generate a code with other databiding framework like jaxbri or xmlbeans.

thanks,
Amila
>
> This is using v1.3, but I am seeing the same behaviour in v1.4.1 as well.
>
> Thanks,
> Colin.
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Axis2 Java code generation question.

2008-12-24 Thread VeeR Six
Hi,

I have the following definition in an XSD:



Standard tariff ID




 

When I generate the Java code I get the TariffID type as expected, but in
the generated setTariffID(int) method, there is no code that captures the
 restriction:

/**
 * Auto generated setter method
 * @param param TariffID
 */
  public void setTariffID(int param){
this.localTariffID=param;
  }

If I then add either  or  and
 to the XSD then these restrictions are captured in the
generated code.  For example, this:



Standard tariff ID








results in the following Java code being generated:

/**
 * Auto generated setter method
 * @param param TariffID
 */
public void setTariffID(int param){
  if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param,
"999") <= 0){
this.localTariffID=param;
  }
  else {
throw new java.lang.RuntimeException();
  }
  if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "0")
>= 0){
this.localTariffID=param;
  }
  else {
throw new java.lang.RuntimeException();
  }
}

My question then is this, why is the  restriction not
captured in the code  generated by Axis2? Is this expected behaviour or is
it a bug?

This is using v1.3, but I am seeing the same behaviour in v1.4.1 as well.

Thanks,
Colin.


RE: SOAP-based web service question

2008-10-15 Thread Martin Gainty

Hi Chris

in $TOMCAT_HOME/webapps/axis2/axis2.xml you should see a port specifier such as

8080


Please ping users axis-user@ws.apache.org for further direction

Thanks,
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Subject: SOAP-based web service question
> Date: Wed, 15 Oct 2008 11:01:12 -0400
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> 
> Hello,
> 
> We'd like to do the following, and it *almost* works.  We want multiple
> ports serving multiple web applications, and following the various
> how-tos on the web we've got multiple Service/Connector/Engine/Host
> setups going.  This is Tomcat 5.5.16.
> 
> We've got regular web application 'A' served on port 8081.
> We've got a SOAP-based web service 'B' (based on web app 'A') served on
> port 8023.
> We've got a SOAP-based web service 'C' served on port 8054.
> 
> This all works, EXCEPT you can also access web service 'B' on port 8054,
> and you can access web service 'C' on port 8023.  It doesn't appear to
> care.
> 
> Any clues?  Is this segregation possible?
> 
>   Thanks!
>   --chris sterritt
> 
> -
> To start a new topic, e-mail: [EMAIL PROTECTED]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

License question on WSDL4J in Axis 1.2.1

2008-09-29 Thread Srini2008

Hi,

I plan to use Apache Axis 1.2.1 for our software application in which I
intend to redistribute Apache Axis 1.2.1.

I have a question on the WSDL4J component which is under "Common Public
License version 1.0" on it. My legal team says its not a friendly license
and wants to exclude this component from distribution, but I cannot.

When I went through the maillist archive I saw a thread mentioning that
WSDL4J code was donated to Apache from IBM at some point of time. Can
someone confirm if this WSDL4J is okay to redistribute under ASL or is it
still under CPL?

Thanks,
Srini

BTW I already searched through this list and found this thread but still
wanted to confirm if things have changed since this thread was posted
http://www.nabble.com/forum/Search.jtp?query=wsdl4j+license&local=y&forum=232&daterange=0&startdate=&enddate
-- 
View this message in context: 
http://www.nabble.com/License-question-on-WSDL4J-in-Axis-1.2.1-tp19728531p19728531.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: Interoperability question: AsymmetricBinding with .Net

2008-09-25 Thread Plamena Chongova
Hi and thanks for the reply.

I'm interested in this because I have a set of interoperability scenarios,
which are working, except this one.
AsymmetricBinding with mutual certificates is ok, but when the UserNameToken
is put in the policy
the signed parts in the message are not validated at .Net side. Did you have
such problems?


Thanks and regards,
Plamena

On Wed, Sep 24, 2008 at 7:47 PM, Dimuthu Leelarathne <[EMAIL PROTECTED]>wrote:

> Hi,
>
> Axis2/Ramart passes many interoperability tests with .NET. AFAIK the
> specified scenario must work with a .NET client.
>
> Thank you,
> Dimuthu
>
>
>
> Plamena Chongova wrote:
>
>> Hi all!
>>
>> I have question regarding Axis2 <-> .Net interoperability scenario.
>> Has anyone succeeded to run the scenario: an Axis2 service with policy
>> with AsymmetricBinding and UserNameToken as SignedSupportingToken vs. .Net
>> client?
>>
>> Thanks and regards,
>> Plamena
>>
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Axiom XPath Question - can't figure out how to select node

2008-09-25 Thread jcaristi

WSDL and XSD attached:
http://www.nabble.com/file/p19670090/PartSelect_v1_0.wsdl
PartSelect_v1_0.wsdl 
http://www.nabble.com/file/p19670090/PartSelect-v1.0.0.xsd
PartSelect-v1.0.0.xsd 



jcaristi wrote:
> 
> I am writing my own WSDL...
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axiom-XPath-Question---can%27t-figure-out-how-to-select-node-tp19668035p19670090.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: Axiom XPath Question - can't figure out how to select node

2008-09-25 Thread Martin Gainty

for some reason I cannot reach your site ..please post your wsdl to a live site

thanks,
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Thu, 25 Sep 2008 05:24:05 -0700
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: Re: Axiom XPath Question - can't figure out how to select node
> 
> 
> I thought so too, so I originally tried
> "/a:makesGet/makesGetParms/b:UserName", which also fails to select the node. 
> 
> 
> Moez Benmbarka wrote:
> > 
> > Hi,
> > 
> > I believe that no element was selected because the "makesGetParam" 
> > element is not in the 
> > "http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0"; namespace as 
> > expected by your XPath expression.
> > 
> > Moez BM,
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Axiom-XPath-Question---can%27t-figure-out-how-to-select-node-tp19668035p19668462.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]
> 

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Axiom XPath Question - can't figure out how to select node

2008-09-25 Thread jcaristi

I thought so too, so I originally tried
"/a:makesGet/makesGetParms/b:UserName", which also fails to select the node. 


Moez Benmbarka wrote:
> 
> Hi,
> 
> I believe that no element was selected because the "makesGetParam" 
> element is not in the 
> "http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0"; namespace as 
> expected by your XPath expression.
> 
> Moez BM,
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axiom-XPath-Question---can%27t-figure-out-how-to-select-node-tp19668035p19668462.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: Axiom XPath Question - can't figure out how to select node

2008-09-25 Thread Moez Benmbarka

Hi,

I believe that no element was selected because the "makesGetParam" 
element is not in the 
"http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0"; namespace as 
expected by your XPath expression.


Moez BM,

jcaristi wrote:

I am writing my own WSDL, with elements imported from an XML schema.  The
WSDL has one namespace, the schema elements have a different namespace.  The
XML that comes into my service (via the RawXMLINOutMessageReceiver) looks
like this:

http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0";>

http://www.whisolutions.com/pss/xsd/partselect/2008/09";>Joe
http://www.whisolutions.com/pss/xsd/partselect/2008/09";>1
http://www.whisolutions.com/pss/xsd/partselect/2008/09";>1998
http://www.whisolutions.com/pss/xsd/partselect/2008/09";>true



My code looks like this:

AXIOMXPath xpathExpression = new AXIOMXPath
("/a:makesGet/a:makesGetParms/b:UserName"); 
xpathExpression.addNamespace("a",

"http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0";);
xpathExpression.addNamespace("b",
"http://www.whisolutions.com/pss/xsd/partselect/2008/09";);
userNode = (OMNode) xpathExpression.selectSingleNode(element);

This code does not select a node.  I have also tried lot's of other XPath
expressions without success.  Can anyone see what's wrong?


  



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



Axiom XPath Question - can't figure out how to select node

2008-09-25 Thread jcaristi

I am writing my own WSDL, with elements imported from an XML schema.  The
WSDL has one namespace, the schema elements have a different namespace.  The
XML that comes into my service (via the RawXMLINOutMessageReceiver) looks
like this:

http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0";>

http://www.whisolutions.com/pss/xsd/partselect/2008/09";>Joe
http://www.whisolutions.com/pss/xsd/partselect/2008/09";>1
http://www.whisolutions.com/pss/xsd/partselect/2008/09";>1998
http://www.whisolutions.com/pss/xsd/partselect/2008/09";>true



My code looks like this:

AXIOMXPath xpathExpression = new AXIOMXPath
("/a:makesGet/a:makesGetParms/b:UserName"); 
xpathExpression.addNamespace("a",
"http://www.whisolutions.com/pss/wsdl/PartSelect-v1.0";);
xpathExpression.addNamespace("b",
"http://www.whisolutions.com/pss/xsd/partselect/2008/09";);
userNode = (OMNode) xpathExpression.selectSingleNode(element);

This code does not select a node.  I have also tried lot's of other XPath
expressions without success.  Can anyone see what's wrong?


-- 
View this message in context: 
http://www.nabble.com/Axiom-XPath-Question---can%27t-figure-out-how-to-select-node-tp19668035p19668035.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: Interoperability question: AsymmetricBinding with .Net

2008-09-24 Thread Dimuthu Leelarathne

Hi,

Axis2/Ramart passes many interoperability tests with .NET. AFAIK the 
specified scenario must work with a .NET client.


Thank you,
Dimuthu


Plamena Chongova wrote:

Hi all!

I have question regarding Axis2 <-> .Net interoperability scenario.
Has anyone succeeded to run the scenario: an Axis2 service with policy 
with AsymmetricBinding and UserNameToken as SignedSupportingToken vs. 
.Net client?


Thanks and regards,
Plamena





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



  1   2   3   4   5   6   7   8   9   10   >