developing web service using deployment descriptor

2005-10-20 Thread aditya mandlekar


i am developing web service using deployment descriptor for transferring a string[] type from client
i have used java2 wsdl and thedn wsdl2java and deploy command ,put my jar files in web-inf folder, devloped a client as per mentioned inattached file ArrayTester.java 
1) i am getting warning when i am trying to complie my proxy classes 
and it suggested me with to complie with X-lint ,then it showed error as
attached file  
2) when i am trying to access my service as http://localhost:8080/axis/services/arrservice,
it is showing error as  axisfault.txt
3)when i am trying to run my client from command prompt,it is showing error like temp1.log
 4) i am also attaching my<  >soapImpl.java class
 
will any body please suggest what r the changes i need to do eigther
   soapImpl.java or client pr jar file
thanking you in advance for any one getting me out of this trouble
 
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 package strarr.strA.ws;
//import Array.Array;
public class ArrayTester {
  public static void main(String [] args) throws Exception {
// Make a service
StringAService service = new StringAServiceLocator();

// Now use the service to get a stub to the service
StringA arr = service.getarrservice();

// Make the actual call
String [] str =new String[1];
String res[] =new String[1];
str[0]="aditya";

res=arr.returnString(str);
System.out.println(res[0]);
}
}/**
 * ArrserviceSoapBindingImpl.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
 */

package strarr.strA.ws;

public class ArrserviceSoapBindingImpl implements strarr.strA.ws.StringA{
public java.lang.String[] returnString(java.lang.String[] in0) throws 
java.rmi.RemoteException {
return in0;
}

}
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - ; nested exception is: 
org.apache.axis.ConfigurationException: Could not find class for the 
service named: strA.ws.ArrserviceSoapBindingImpl
Hint: you may need to copy your class files/tree into the right location (which 
depends on the servlet system you are using).; nested exception is: 
java.lang.ClassNotFoundException: strA.ws.ArrserviceSoapBindingImpl
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: Could not find class for the service named: 
strA.ws.ArrserviceSoapBindingImpl
Hint: you may need to copy your class files/tree into the right location (which 
depends on the servlet system you are using).; nested exception is: 
java.lang.ClassNotFoundException: strA.ws.ArrserviceSoapBindingImpl
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}hostname:fttr
Could not find class for the service named: strA.ws.ArrserviceSoapBindingImpl
Hint: you may need to copy your class files/tree into the right location (which 
depends on the servlet system you are using).; nested exception is: 
java.lang.ClassNotFoundException: strA.ws.ArrserviceSoapBindingImpl
at 
org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvider.java:432)
at 
org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:461)
at 
org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
at 
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
at 
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at 
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at 
org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
at 
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at 
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:295)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(

Pointers to Open source for XML transformation tool

2005-10-20 Thread Sandeep Gaikwad
Hi,
 
 We are having one urgent requirement for tarnsformation of text file into XML format and viceversa.
   If anyone knows one please suggest me.
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

Re: UDDI and WSDL

2005-10-20 Thread Bhuvan Gupta



HI Moshe, 
 
To discober the WSDL of a service in a UDDI server 
you need to use 
UDDI4J (http://uddi4j.sourceforge.net/) and 
not AXIS. 
 
Thanks
Bhuvan

  - Original Message - 
  From: 
  Moshe 
  Bar-Nachoom 
  To: List Axis 
  Sent: Thursday, October 20, 2005 6:54 
  PM
  Subject: UDDI and WSDL
  Hi guys (and gals)i've got a general question, i hope you 
  can help me with.lets say i want to discover a service using a UDDI 
  server.can this be done easily using axis?is there a way to discover 
  the WSDL of a service in a UDDI server?i'd much appreciate answers to 
  that.sincerely,moshe


java2wsdl and attachments

2005-10-20 Thread Jarmo Doc
My WS needs to send attachments to clients.  An individual response may 
contain more than one attachment.  All attachments can be treated as untyped 
binary files.


Is it possible to indicate this in my service code so that (Axis 1.2) 
java2wsdl will produce something that will work?  I can see that if I use 
java.awt.Image then my WSDL indicates apachesoap:Image and if I use 
javax.activation.DataHandler then my WSDL indicates apachesoap:DataHandler 
but I have zero confidence that these will mean anything to, for example, a 
gSOAP client.


PS I have read the WS-I and W3C specs as well as a dozen more documents on 
attachments and I think it's fair to say that what started out as a 
medium-difficulty problem has somehow been transformed into a complete 
nightmare.


_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




Re: Axis Session Issues

2005-10-20 Thread Duncan Krebs
Richard,
Thanks for the idea, I tried it and however am still experiencing the same
issue. It also brings me to a possible misconception that I have, is it even
possible to maintain session when one client uses multiple web services on
one web server?

- Original Message - 
From: "Richard Gregory" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, October 19, 2005 2:50 AM
Subject: Re: Axis Session Issues


> Hi Duncan,
>
> Do you have this setting in your service wsdd?
>
> 
>
> If not, this may be the problem.
>
> Richard.
>
> Duncan Krebs wrote:
>
> >Hi,
> >I have an eclipse RCP application that communicates with a server via
axis
> >web services. Running axis on both the client and the server. For my
> >security model I'm trying to set a session object on the
HttpServletRequest
> >which I get by calling
> >context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST). I call
> >conetxt.setMaintainSession(true) in the service and do the same on the
> >client service object.
> >
> >In my initial login service I set a session object in the HttpSession
> >attribute collection off the ServletRequest however when subsequent
services
> >are called by the same client the Httpsession object is not maintained
and
> >during debugging the boolean value of NewSession is set to true on the
> >Session object.
> >
> >Does anyone know what I might be mssing? From reading the documentation I
> >think I'm doing everything right. Thanks for any help. - Duncan
> >
> >
> >
> >
> >
>



Re: SOAP:Header question

2005-10-20 Thread Hans Planting (CWEU-USERS/CWNL)

It should look like:


   
   **

...

 
 
   
 
...

 
   
 http://xxx/webservices/GetFinancialDetail"; 
style="document" />
 
   
   
...



When running wsdl2java you should get something like 'getFinancialData(String 
clientid, Authorization auth)' as the webservices endpoint method. The clientid 
will be sent in the soap:body, the auth in the soap:header of the envelope.
The Axis java source distribution contains a good example of this in 
[axishome]/test/wsdl/header

Hans





You got the idea: have the endpoint method (getFinancialData) handle this
data - and obviously, it requires extra parameters to do that. The question
is how to transfer this authentication data from the header to this
parameter.
Or do I misunderstand?

Just for clearence:
I got a WSDL from which I created the JAVA sources using WSDL2Java
--server-side, that gave me (amongst others) OrgWebservice.java and
OrgWebServiceImpl.java. The last one is the one that implements the actual
services, amongst the GetFinancialDetails (java.lang.String clientid). Is
that what you call the "endpoint method"?

Obviously, that one nedds to get the authentication data, and I don't care
if that would be in the form of an object:
Object class Authentication
  java.lang.String region ;
  java.lang.String department ;
  java.lang.String desk ;
  java.lang.String username ;

or whatever, or as separate arguments. Lets assume the first. 


So the service - now generated as:

FinDetails class getFinancialDetails (java.lang.String clientid)

would need to be:

FinDetails class getFinancialDetails (java.lang.String clientid,
Authetication authentication)

so I could use the data - directly or by a getter.

Would this be the idea of WSDL:
...
 
 
   
 
   
 
 
 
 
   
 
   
 
 
...
 
   
 
...
   
 http://xxx/webservices/GetFinancialDetail";
style="document" />
 
   
   
 
 
   
 
   
...

This is in the WSDL already, but the header data is not included in the
generated JAVA code:

public interface OrgWebServiceSoap extends java.rmi.Remote {
...
   public xxx.FinDetails getFinancialDetail(java.lang.String clientid) ;
...
} 


and I don't find any refererence to the haeder data either when searching
all java files.

So HOW to change the WSDL to get this information included in the interface?
Or should I just add it and create a WSDL from the java code? Quite a nasty
job since so much needs to be coded. By that: the nasty part, at the moment,
is that the WSDL is _delivered_ to me - there is already a webservice (on
another platform) that works with it. The good side is that we're in the
stage of preparing a new version so changes can be incoprorated. If only I
had some idea.

Willem 

PS. Original names in code adapted for display, because of policy. 


-Oorspronkelijk bericht-
Van: Hans Planting (CWEU-USERS/CWNL)
[mailto:[EMAIL PROTECTED]
Verzonden: donderdag 20 oktober 2005 11:29
Aan: axis-user@ws.apache.org
Onderwerp: Re: SOAP:Header question


Hi Willem,

It sounds to me that you need to use explicit service context: the 
signature of the webservices endpoint method is extended with the parts 
of the soap:header.
This way the getFinancialDetails method will have an additional 
parameter for the authentication data - however the authentication data 
in the soap envelope is transported in the header. So you don't create a 
separate handler to deal with the header but instead deal with it in the 
endpoint method. Make sure that in the wsdl the soapheader element 
refers to a part in the request message.


Regards,
Hans

 


Hi,
Some help is rquired with the following problem:

I have an application on a OpenVMS system that is used by different
   


regional
 


offices, where all use the same executables, but the data is completely
separated. If a person logs in, the OS will know which scripts to execute
   


to
 


setup the right paths to the data, and the application will then be able to
check the authorisations of that user. If the user uses the application, he
will only have access - by this setup - to the data of his regional office.

It happens that a .NET application will access the data by a SOAP-based
webservice. This application is used by the same regional offices that use
the OpenVMS application, and will access only the data of that office. Only
users of the .NET application that are authorized will be allowed access -
be it anyone within a deparetment, or a specific user. In some cases, data
can just be accessed if requested from a certain desk only. 
This authorization is set within the dataset on the VMS machine and

maintained on that system only (for security reasons).

That means that the webservice needs to be able to set the right access
paths to the data, in order to check access by that user, on a
request-by-request basis, because, IIRC, SOAP:Header can contain
a

Axis and Mappoint.NET problem - "(405)Method Not Allowed"

2005-10-20 Thread Bob
Hi,

I'm developing a simple signed mapping applet and
experimenting with the possibility of adding MapPoint
maps to it as background graphics. However after
resolving various other problems I'm stuck :/

The applet loads various Axis 1.3 jars and uses
CommonsHTTPSender (yes, I made a custom
client-config.wsdd) to query the standard Mappoint
service pointed to by
http://staging.mappoint.net/standard-30/mappoint.wsdl.
It's using a test account we have for another app
which does work. Specifically it calls getMap in
RenderService, but I tried the LatLong converter and
that produced the same error, as shown below. The
pertinent part appears to be "The HTTP verb used to
access this page is not allowed".

AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode: 
 faultString: (405)Method Not Allowed
 faultActor: 
 faultNode: 
 faultDetail: 
{}:return code:  405
;
The page cannot
be displayed


The page cannot be displayed

The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

Please try the following:

  • Contact the Web site administrator if you believe that this request should be allowed.
  • Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.

HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)


Technical Information (for support personnel)

  • Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
  • Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
{http://xml.apache.org/axis/}HttpErrorCode:405 (405)Method Not Allowed at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:218) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at net.mappoint.s.mappoint_30.RenderServiceSoapStub.getMap(RenderServiceSoapStub.java:1400) at jSimpleMapper.mappointDotNetClient.(mappointDotNetClient.java:134) at jSimpleMapper.MapperApplet.start(MapperApplet.java:2375) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Possible causes seem to be : - It's not calling the right endpoint (but how can I tell?) - Something more fundamentally wrong e.g. in Axis - I'm just calling the service incorrectly but Mappoint is returning a spurious highly misleading error message :) I'm using : - Axis 1.3 - J2SDK 1.5.0_04-b05, but compiling with -source 1.4 -target 1.4 - commons-codec-1.3.jar - commons-httpclient-3.0-rc4.jar Any answers greatly appreciated, thanks. ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

Re: AXIS-PHP issue

2005-10-20 Thread bdbruin
Bugfixes for PEAR::SOAP

* REQUIRED CHANGES TO PEAR::SOAP SCRIPTS
 *
 * - In Client.php
 *
 * search for and comment out the line "$name =
$part['name'];"
 *
 * - In WDSL.php:
 *
 * set constant [WSDL_CACHE_USE = 1] to enable caching
(recommended!)
 *
 * search for and replace the line "if (strstr($key,
'xmlns:') != false) {"
 * by "if (strstr($key, 'xmlns:') != false && strstr($key,
'intf') ==
false) {"


> Hi,
>
> If you are using document/wrapped or document/literal, PEAR::SOAP has
> several bugs. I am doing this by heart some I cannot give you specific
> details:
>
> - PEAR::SOAP sets namespace incorrectly when using complex types. This can
> be fixed by commenting out something :-)
> - PEAR::SOAP incorrectly handles long values (it converts them to
> integers)
>
> To be shot: PEAR::SOAP has some issues.
>
> I cc'ed your issue to someone I know who has an fixed PEAR::SOAP package.
> he might be willing to help you out.
>
> Kind Regards,
>
> Bolke
>
>> Hi,
>> I am using PEAR:SOPA at client side to access hosted
>> web services, which is using AXIS(1.3).
>>
>> I am getting strange problem when accessing API which
>> takes one of the argument as NamedValue[],  whenever
>> trying to access these API server throws
>> NullPointerException. I am not sure what is going
>> wrong. The same API works fine when I use AXIS at
>> clien side.  It would be great help if you could help
>> to sort out this problem.
>> I tryed with PHP 4.3x and above, platform Linux
>>
>> Code Snippet:
>>
>> Custom NamedValue class:
>>
>> class NamedValue
>> {
>>   var $name;   // attribute name
>>   var $value;  // attribute value
>>
>>   function NamedValue($name, $value = null)
>>   {
>>// $this->name = $name;
>>// $this->value = $value;
>>$this->name = new
>> SOAP_Value('name','string',$name);
>>$this->value =  new SOAP_Value('value', '',
>> $value);
>>   }
>> }
>>
>> Invoke WS:
>>
>> $wsdlURL = $this->URL . '/foo/wsdl/' . $foo . '.wsdl';
>> $wsdl = new SOAP_WSDL( $wsdlURL);
>> $client = $wsdl->getProxy();
>> $folderdef = array (new NamedValue(Attributes::NAME(),
>> $name));
>> $wsid = new SOAP_Value('','long', 9595);
>> $newFolder = $fm_client->foo($wsid, $folderdef,
>> null);
>>
>>
>> Exception stack trace
>> faultString: java.lang.NullPointerException
>>  faultActor:
>>  faultNode:
>>  faultDetail:
>>
>> {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
>> at
>> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:310)
>> at
>> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
>> at
>> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
>> at
>> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
>> at
>> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>> at
>> org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>> at
>> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
>> at
>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
>> at
>> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>> at
>> org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> at
>> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> at
>> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
>> at
>> org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
>> at
>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>> at
>> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at
>> com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
>> at
>> oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown
>> Source)
>> at
>> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
>> at
>> oracle.ifs.fdk.http.HttpServerManager.doFilter(HttpServerManager.java:103)
>> at
>> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
>> at
>> oracle.ifs.fdk.http.AxisSecurityFilter.doFilter(AxisSecurityFilter.java:83)
>> at
>> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
>> at
>> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
>> at
>> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
>> at
>> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
>> at

Re: custom HTTPSender

2005-10-20 Thread Cyrille Le Clerc
Hello Christopher,

You can code a custom handler for http transport. It is not necessary
that it subclasses HTTPSender as long as it implements Handler.

You can configure the implementation class for each transport in a
file called "client-config.wsdd" that you should drop in your
classpath (in the root folder).

Note that other implementations of Http Transport are availables like :
- org.apache.axis.transport.http.CommonsHTTPSender : relies on Jakarta
Commons Http Client, supports http keep-alive, bundled in Axis
- com.osmoticweb.soapcompression.CompressionHTTPSender : supports http
compression (deflate / gzip),
http://www.osmoticweb.com/axis-soap-compression.htm

Sample of client-config.wsdd:

http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
   
 
   

   
   
   


Hope this helps,

Cyrille


--
Cyrille Le Clerc
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On 10/19/05, Christopher S. Johnson <[EMAIL PROTECTED]> wrote:
> All -
>
> Is it possible to override the current HTTPSender class just by extending
> the current HTTPSender class and overriding it's methods?
>
> Any help would be great.
>
> Thanks
>


Support for RPC binding in Axis2

2005-10-20 Thread Uday Kamath
Folks
Will support for RPC binding based Web Service through API and through
WSDL2JAVA planned in next releases or is it not, we are planning to use
Axis2 as our backbone for Web Services and based on this we need to make
decision on RPC binding whether to use Axis 1.3 for just RPC based
bindings? 
Also Axis 1.3 and Axis 2.0 clients should be able to co-exist as they
have different classes and packages and it shouldn't interfere etc
whether in terms of invocation or in terms of security etc..if anyone
knows of any problems etc please let me know
-Uday


Re: AXIS-PHP issue

2005-10-20 Thread bdbruin
Hi,

If you are using document/wrapped or document/literal, PEAR::SOAP has
several bugs. I am doing this by heart some I cannot give you specific
details:

- PEAR::SOAP sets namespace incorrectly when using complex types. This can
be fixed by commenting out something :-)
- PEAR::SOAP incorrectly handles long values (it converts them to integers)

To be shot: PEAR::SOAP has some issues.

I cc'ed your issue to someone I know who has an fixed PEAR::SOAP package.
he might be willing to help you out.

Kind Regards,

Bolke

> Hi,
> I am using PEAR:SOPA at client side to access hosted
> web services, which is using AXIS(1.3).
>
> I am getting strange problem when accessing API which
> takes one of the argument as NamedValue[],  whenever
> trying to access these API server throws
> NullPointerException. I am not sure what is going
> wrong. The same API works fine when I use AXIS at
> clien side.  It would be great help if you could help
> to sort out this problem.
> I tryed with PHP 4.3x and above, platform Linux
>
> Code Snippet:
>
> Custom NamedValue class:
>
> class NamedValue
> {
>   var $name;   // attribute name
>   var $value;  // attribute value
>
>   function NamedValue($name, $value = null)
>   {
>// $this->name = $name;
>// $this->value = $value;
>$this->name = new
> SOAP_Value('name','string',$name);
>$this->value =  new SOAP_Value('value', '',
> $value);
>   }
> }
>
> Invoke WS:
>
> $wsdlURL = $this->URL . '/foo/wsdl/' . $foo . '.wsdl';
> $wsdl = new SOAP_WSDL( $wsdlURL);
> $client = $wsdl->getProxy();
> $folderdef = array (new NamedValue(Attributes::NAME(),
> $name));
> $wsid = new SOAP_Value('','long', 9595);
> $newFolder = $fm_client->foo($wsid, $folderdef,
> null);
>
>
> Exception stack trace
> faultString: java.lang.NullPointerException
>  faultActor:
>  faultNode:
>  faultDetail:
>
> {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
> at
> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:310)
> at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
> at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
> at
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> at
> org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at
> org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at
> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at
> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
> at
> org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
> at
> oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown
> Source)
> at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
> at
> oracle.ifs.fdk.http.HttpServerManager.doFilter(HttpServerManager.java:103)
> at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
> at
> oracle.ifs.fdk.http.AxisSecurityFilter.doFilter(AxisSecurityFilter.java:83)
> at
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
> at
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
> at
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
> at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
> at java.lang.Thread.run(Thread.java:534)
>
>
> java.lang.NullPointerException
> at
> org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:329)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at
> org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:11

AXIS-PHP issue

2005-10-20 Thread Avinash laddha
Hi,
I am using PEAR:SOPA at client side to access hosted
web services, which is using AXIS(1.3). 
 
I am getting strange problem when accessing API which
takes one of the argument as NamedValue[],  whenever
trying to access these API server throws
NullPointerException. I am not sure what is going
wrong. The same API works fine when I use AXIS at
clien side.  It would be great help if you could help
to sort out this problem. 
I tryed with PHP 4.3x and above, platform Linux

Code Snippet:

Custom NamedValue class:

class NamedValue
{
  var $name;   // attribute name
  var $value;  // attribute value

  function NamedValue($name, $value = null)
  {
   // $this->name = $name;
   // $this->value = $value;
   $this->name = new
SOAP_Value('name','string',$name);
   $this->value =  new SOAP_Value('value', '',
$value);
  }
}

Invoke WS:

$wsdlURL = $this->URL . '/foo/wsdl/' . $foo . '.wsdl';
$wsdl = new SOAP_WSDL( $wsdlURL);
$client = $wsdl->getProxy();
$folderdef = array (new NamedValue(Attributes::NAME(),
$name));
$wsid = new SOAP_Value('','long', 9595);
$newFolder = $fm_client->foo($wsid, $folderdef, 
null);


Exception stack trace
faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
   
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:310)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at
oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown
Source)
at
com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at
oracle.ifs.fdk.http.HttpServerManager.doFilter(HttpServerManager.java:103)
at
com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at
oracle.ifs.fdk.http.AxisSecurityFilter.doFilter(AxisSecurityFilter.java:83)
at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)


java.lang.NullPointerException
at
org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:329)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at 
com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at
ora

UDDI and WSDL

2005-10-20 Thread Moshe Bar-Nachoom




Hi guys (and gals)
i've got a general question, i hope you can help me with.
lets say i want to discover a service using a UDDI server.
can this be done easily using axis?
is there a way to discover the WSDL of a service in a UDDI server?
i'd much appreciate answers to that.
sincerely,
moshe





Re: Need Design help for ComplextTypes to ActionForms please...anyone?

2005-10-20 Thread trebor iksrazal
You don't control the wsdl, the web services are
seemingly in cobol, and you have struts ActionForms
using them. And you're wondering why no one is helping
you ? ;-) 

I'd try and look at this from an OO and design
patterns standpoint instead. There's essentially
nothing you can do with the generated code if you
don't control the wsdl, but what you can do if be
creative on how you use the objects and methods
created by the wsdl. 

Off the top of my head: 

1) Use the adapter pattern - does the right thing with
the wrong interface. 
2) Use delegates - an alternative to 'extends' . 
3) You want to favor composition over inheritance
anyways, so you can create new objects which contain
your complex objects. 
4) Think about applying the bridge pattern - extending
an existing product without changing it. 

HTH,
iksrazal

--- Mick Knutson <[EMAIL PROTECTED]> wrote:

> I don't control the wsdl.
> 
> I also do not like the ComplexTypes that are
> generated. They exist because 
> of Cobol requires certain structure, and I need the
> structures more 
> flattened.
> 
> So, if there was a way to make the generated files
> extend or implement an 
> Abstract Class or Interface?
> If I use an Abstract Class I can have a utility
> method that will convert the 
> Complex SubType into data members on my
> DTO's/ActionForms.
> 
> I am just trying to solve this:
> This works fine:
> EnrollType.commonEnrollmentId ==
> Consumer.commonEnrollmentId
> With this:
> BeanUtils.copyProperties(EnrollType, Consumer);
> 
> Then when the wsdl changes to this:
> EnrollType.customerReferenceNumber !=
> Consumer.commonEnrollmentId
> This does NOT work:
> BeanUtils.copyProperties(EnrollType, Consumer);
> 
> So without a way to have an extends or interface
> break at compile time, many 
> changes like this go unoticed for some time, and
> dismissed as bad data in 
> the DB.
> 
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> 
> >From: trebor iksrazal <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: Need Design help for ComplextTypes to
> ActionForms 
> >please...anyone?
> >Date: Wed, 19 Oct 2005 12:56:31 -0700 (PDT)
> >
> >Try seperating the Struts issues out of your
> question
> >and make it more of a wsdl and complex types
> question.
> >Maybe you have a front end to these web services
> but
> >thats not really a web services question, unless
> its a
> >special case.
> >
> >Furthermore, I don't really understand the
> question.
> >With 'extension base' an WSDL can have super and
> >sub-types, and it is common simply to have a
> delegate
> >that mirrors the web service, doing the
> transactions
> >and so forth. Beyond that, if your passing objects
> I
> >don't understand why its burdensome to change the
> wsdl
> >on those objects.
> >
> >Try to focus your question down a bit and maybe I
> can
> >help.
> >
> >iksrazal
> >
> >--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> > > Ok, I have sent many emails about an issue I an
> > > having designing a solution
> > > for my wsdl2java files.
> > > I would really hope someone will respond to this
> > > issue as nobody has done so
> > > before!
> > >
> > > I have a wsdl that is managed and generated by a
> > > different group than mine.
> > > This wsdl has many complex types within complex
> > > types for each service. Thus
> > > I get composite objects being generated, and we
> use
> > > a flattened version of
> > > these objects in our Struts UI. But Currently,
> we
> > > create an ActionForm and
> > > an interface that Mirrors the ComplextType that
> was
> > > generated, but has
> > > additional fields for the fields.
> > >
> > > Like I have a micrType that is an RTN and
> > > BankAccount, and my Action form
> > > just has RTN and BankAccount instead of micrType
> > >
> > > So, if I can't have the wsdl define Parent
> Abstract
> > > Classes for these types,
> > > What am I suppose to do to keep some type of
> > > interface between my
> > > ActionForms and my ComplextTypes? Besides going
> > > through by hand each time
> > > there is an update and making changes by hand,
> then
> > > having to verify by hand
> > > that the changes get reflected in my
> ActionForms?
> > >
> > > I find it hard to believe I am the only person
> with
> > > this issue, yet I feel
> > > this way as I have sent 4-6 messages over the
> past
> > > 1.5 months and have
> > > gotten zero response.
> > >
> > >
> > >
> > > Thank You
> > > Mick Knutson
> > >
> > > Sr. Java/J2EE Consultant
> > > BASE logic, inc.
> > > (415) 648-1804 (S.F., CA)
> > > http://www.BASELogic.com
> > >
> > > HP Consulting Services (Walnut Creek, CA)
> > >
> > >
> > >
> >
> >
> >"None are more hopelessly enslaved than those who
> falsely believe they are 
> >free. -- Goethe"
> >
> >
> >
> >__
> >Yahoo! Music Unlimited
> >Acce

Re: Upgrade to Axis1.2 from Axis1.1RC1

2005-10-20 Thread Somendra Paul
Please help me out...if you guys have done this
previously

Any help would be greatly appreciated.

Regards,
Somendra


--- Somendra Paul <[EMAIL PROTECTED]> wrote:

> hi All,
> I am new to WebService and hence will
> put
> up some stupid questions.We are actually trying to
> upgrade our application that is running on Axis1.1
> to
> Axis1.2.
>  
> Currently we are doing it as follows in Axis1.1
> We are generating the WSDL files using Glue and then
> changing it according to what Axis requires them.and
> then we are generating the stubs and .wsdd files
> using
> Axis WSDL2Java Application. 
>  
>  
> Approach:
> We tried compiling our source using Axis1.2
> jars,but we didnt change the way the WSDL are
> generated.Only that now the stubs and the .wsdd
> files
> are changed as they are getting generated by Axis1.2
> WSDL2Java utility.But when do this,i find that the
> webservice is not getting deployed,when we run the
> deploy scripts and it gives a error as follows:
>  
> 04 Oct 2005 16:41:25 ^mainConfigurationException:
> org.apache.axis.deployment.wsdd.WSDDException:
> javax.xml.rpc.JAXRPCException: Null serializer
> factory
> specified.
> javax.xml.rpc.JAXRPCException: Null serializer
> factory
> specified.
>  at
>
org.apache.axis.encoding.TypeMappingImpl.register(TypeMappingImpl.java:217)
>  at
>
org.apache.axis.encoding.TypeMappingDelegate.register(TypeMappingDelegate.java:73)
>  at
>
org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:306)
>  at
>
org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:462)
>  at
>
org.apache.axis.configuration.FileProvider.getTypeMappingRegistry(FileProvider.java:262)
>  at
>
org.apache.axis.AxisEngine.getTypeMappingRegistry(AxisEngine.java:348)
>  at
>
org.apache.axis.client.Service.getTypeMappingRegistry(Service.java:704)
>  at
>
org.apache.axis.client.Service.setTypeMappingVersion(Service.java:904)
>  at
>
com.yodlee.soap.core.login.CobrandLoginSoapBindingStub.(CobrandLoginSoapBindingStub.java:100)
>  at
>
com.yodlee.soap.core.login.CobrandLoginSoapBindingStub.(CobrandLoginSoapBindingStub.java:90)
>  at
>
com.yodlee.soap.core.login.CobrandLoginServiceLocator.getCobrandLogin(CobrandLoginServiceLocator.java:55)
>  at
>
com.yodlee.soap.core.login.CobrandLoginServiceLocator.getCobrandLogin(CobrandLoginServiceLocator.java:50)
>  at
>
com.yodlee.soap.core.login.CobrandLoginSoapClientProxy.(CobrandLoginSoapClientProxy.java:61)
>  at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>  at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>  at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>  at
>
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>  at java.lang.Class.newInstance0(Class.java:308)
>  at java.lang.Class.newInstance(Class.java:261)
>  at
>
com.yodlee.core.ProxyFactory.getInstanceOfClass(ProxyFactory.java:419)
>  at
>
com.yodlee.core.ProxyFactory.createProxy(ProxyFactory.java:303)
>  at
>
com.yodlee.core.ProxyFactory.createProxy(ProxyFactory.java:174)
>  at SoapClient.main(SoapClient.java:41)
>  
> What i need to know is that is my approach
> correct,or
> I have to also change the WSDL files also.
>  
> If anyone helps me out ,telling me what all steps to
> be taken, in a simple language which I can
> understand,it would be of great help to me.
>  
>  
> /Regards,
> Somendra
>  
> 
> 
>   
> __ 
> Yahoo! Music Unlimited 
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


ArrayList return null

2005-10-20 Thread Christelle Heritier

Hi everybody,

I have a method in my service which return an ArrayList. In the 
SoapMonitor I see that:



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

 
   soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0" xsi:type="soapenc:long" 
xmlns:ns1="http://xml.apache.org/axis/session"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>-3238605033002585696

 
 
   soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns2="RmiSoapWorkSession">

 
   
   soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
soapenc:arrayType="xsd:anyType[3]" xsi:type="soapenc:Array" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

 
 
 
   
   soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns3:Launchable" xmlns:ns3="urn:BeanService" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

 
 mainEngine
 false
 xsi:type="xsd:string">http://localhost:7079/webService_2.0.xml

   
   soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns4:Launchable" xmlns:ns4="urn:BeanService" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

 
 mainEngine
 false
 xsi:type="xsd:string">http://localhost:7079/webService_3.0.xml

   
   soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns5:Launchable" xmlns:ns5="urn:BeanService" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

 
 mainEngine
 false
 xsi:type="xsd:string">http://localhost:7079/webService_1.0.xml

   
 


But in the client I have a NullPointerException why?

I use to deploy my servie the next deploy.wsdd:
http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

   
   
   
   
   
   
   
   
   
   value="openwfe.org.worklist.ws.impl.RmiSoapWorkSession"/>
   

   
   xmlns:ns="urn:BeanService" 
languageSpecificType="java:openwfe.org.engine.workitem.InFlowWorkItem"/>
   xmlns:ns="urn:BeanService" 
languageSpecificType="java:openwfe.org.engine.expressions.FlowExpressionId"/>
   languageSpecificType="java:openwfe.org.engine.workitem.LaunchItem"/>
   languageSpecificType="java:openwfe.org.worklist.Header"/>
   xmlns:ns="urn:BeanService" 
languageSpecificType="java:openwfe.org.engine.workitem.StringMapAttribute"/>
   xmlns:ns="urn:BeanService" 
languageSpecificType="java:openwfe.org.engine.workitem.StringAttribute"/>
   languageSpecificType="java:openwfe.org.worklist.Launchable"/>
   languageSpecificType="java:openwfe.org.engine.workitem.HistoryItem"/>
   languageSpecificType="java:javax.security.auth.Subject"/>
   languageSpecificType="java:java.util.ArrayList" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

   


In my client I have the next registrerTypeMapping:
call.registerTypeMapping(Launchable.class, qnLaunchable,
   new org.apache.axis.encoding.ser.BeanSerializerFactory(
   Launchable.class, qnLaunchable),
   new 
org.apache.axis.encoding.ser.BeanDeserializerFactory(

   Launchable.class, qnLaunchable));
call.registerTypeMapping(
   ArrayList.class,
   qnArrayList,
   new 
org.apache.axis.encoding.ser.ArraySerializerFactory(),
   new 
org.apache.axis.encoding.ser.ArrayDeserializerFactory());


What is wrong?

Thanks,
Christelle



RE: SOAP:Header question

2005-10-20 Thread Willem Grooters
You got the idea: have the endpoint method (getFinancialData) handle this
data - and obviously, it requires extra parameters to do that. The question
is how to transfer this authentication data from the header to this
parameter.
Or do I misunderstand?

Just for clearence:
I got a WSDL from which I created the JAVA sources using WSDL2Java
--server-side, that gave me (amongst others) OrgWebservice.java and
OrgWebServiceImpl.java. The last one is the one that implements the actual
services, amongst the GetFinancialDetails (java.lang.String clientid). Is
that what you call the "endpoint method"?

Obviously, that one nedds to get the authentication data, and I don't care
if that would be in the form of an object:
Object class Authentication
   java.lang.String region ;
   java.lang.String department ;
   java.lang.String desk ;
   java.lang.String username ;

or whatever, or as separate arguments. Lets assume the first. 

So the service - now generated as:

FinDetails class getFinancialDetails (java.lang.String clientid)

would need to be:

FinDetails class getFinancialDetails (java.lang.String clientid,
Authetication authentication)

so I could use the data - directly or by a getter.

Would this be the idea of WSDL:
...
  
  

  

  
  
  
  

  

  
  
...
  

  
...

  http://xxx/webservices/GetFinancialDetail";
style="document" />
  


  
  

  

...

This is in the WSDL already, but the header data is not included in the
generated JAVA code:

public interface OrgWebServiceSoap extends java.rmi.Remote {
...
public xxx.FinDetails getFinancialDetail(java.lang.String clientid) ;
...
} 

and I don't find any refererence to the haeder data either when searching
all java files.

So HOW to change the WSDL to get this information included in the interface?
Or should I just add it and create a WSDL from the java code? Quite a nasty
job since so much needs to be coded. By that: the nasty part, at the moment,
is that the WSDL is _delivered_ to me - there is already a webservice (on
another platform) that works with it. The good side is that we're in the
stage of preparing a new version so changes can be incoprorated. If only I
had some idea.

Willem 

PS. Original names in code adapted for display, because of policy. 

-Oorspronkelijk bericht-
Van: Hans Planting (CWEU-USERS/CWNL)
[mailto:[EMAIL PROTECTED]
Verzonden: donderdag 20 oktober 2005 11:29
Aan: axis-user@ws.apache.org
Onderwerp: Re: SOAP:Header question


Hi Willem,

It sounds to me that you need to use explicit service context: the 
signature of the webservices endpoint method is extended with the parts 
of the soap:header.
This way the getFinancialDetails method will have an additional 
parameter for the authentication data - however the authentication data 
in the soap envelope is transported in the header. So you don't create a 
separate handler to deal with the header but instead deal with it in the 
endpoint method. Make sure that in the wsdl the soapheader element 
refers to a part in the request message.

Regards,
Hans

>Hi,
>Some help is rquired with the following problem:
>
>I have an application on a OpenVMS system that is used by different
regional
>offices, where all use the same executables, but the data is completely
>separated. If a person logs in, the OS will know which scripts to execute
to
>setup the right paths to the data, and the application will then be able to
>check the authorisations of that user. If the user uses the application, he
>will only have access - by this setup - to the data of his regional office.
>
>It happens that a .NET application will access the data by a SOAP-based
>webservice. This application is used by the same regional offices that use
>the OpenVMS application, and will access only the data of that office. Only
>users of the .NET application that are authorized will be allowed access -
>be it anyone within a deparetment, or a specific user. In some cases, data
>can just be accessed if requested from a certain desk only. 
>This authorization is set within the dataset on the VMS machine and
>maintained on that system only (for security reasons).
>
>That means that the webservice needs to be able to set the right access
>paths to the data, in order to check access by that user, on a
>request-by-request basis, because, IIRC, SOAP:Header can contain
>authentication information, and this can be specified in some structure. So
>my idea is to use a structure in the SOAP:header, since it is required for
>each and every request.
>
>An example:
>I'm working at the ICT department, and logged in on PC at the infodesk of
>region . I need to get information on the financial details of client
>with code 123456.
>The ,NET application will build up a SOAP message containing my login
>information (in the header) and  the requested information 

RE: ">" characters in Queue Names

2005-10-20 Thread Wessel Alexander
On the ">" characters I have no idea. But regarding the underscores, I
can tell you that I had this behaviour when one of my classes was named
like a reserved word in Java, regardless of the case. I once named a
class "Package" for example, and it was prepended a "_" sind "package"
is a reserved word in Java.
 
Hope this helps,
Alexander Wessel
 



From: Vishist Mandapaka *EXTERN* [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 8:27 PM
To: axis-user@ws.apache.org
Subject: ">" characters in Queue Names



Hi,
  When I try to generate the beans using wsdl2java, I get these
weird ">" characters in the queue name. Now, this tag appears for
 types. For , this character is not coming
up. Any particular reason that this character should show up. What I am
doing now is to delete the character from the "Stub" file and also from
the element file. 

I had a tough time to locate this and then remove it in Axis 1.1. It
would not deploy in Axis 1.1 if the queue name contains ">" characters.
Also, Why does Axis 1.1 prepend classnames with "_" characters. 


thanks
vishist.



RE: [Axis2] Asynchronous dual client

2005-10-20 Thread Villalba, Gregorio, VF-ES \(gvillal2\) EXT
Thanks, the MessageId and the ReplyTo elements are right now.

-Mensaje original-
De: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 18 de octubre de 2005 19:15
Para: axis-user@ws.apache.org
Asunto: Re: [Axis2] Asynchronous dual client


Hi,

The MessageId issue was fixed earlier today

Please see: http://marc.theaimsgroup.com/?l=axis-dev&m=112961888525282&w=2

Please try the code from the latest SVN

Thanks,
Ruchith

On 10/18/05, Villalba, Gregorio, VF-ES (gvillal2) EXT <[EMAIL PROTECTED]> wrote:
>
>
> Hi again,
>
> I think I have found other problem, in the same scenario. When using 
> "Call" with two connections, (Axis generates the header and does not 
> allow changes), the element MessageId that is inserted is a number, 
> and it should be an URI.
>
> I am using Axis2-0.9, maybe it works in other version.
> Anyone knows? Is it a bug?
>
> Thanks.
>
>
> --
> --
> --
> -
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>
>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>http://localhost:8060
>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>http://sc
> hemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
>
>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>
>
> http://127.0.0.1:6060/axis/services/EventSource/SubscribeOp
>   
>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>1129648347852
>
> --
> --
> --
> -
>
>
> -Mensaje original-
> De: Srinath Perera [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 18 de octubre de 2005 14:49
> Para: axis-user@ws.apache.org
> Asunto: Re: [Axis2] Asynchronous dual client
>
>
> Ư Eran is 100% right. this is not a bug. If you choose the In-Out 
> mep
>
> that means you hand over the control to Axis2. So you can not set the 
> Adressing Headers. (Becouse Axis2 will set up a listener fo you and 
> waiting for reply).
>
>
>
> If you need to contol addressing use In-Only MEP.
>
> Let us close the bug
> For more info read the "In-Only MEP Support: InOnlyMEPClient" part of 
> article http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html
>
> Srinath
>
> On 10/18/05, Eran Chinthaka <[EMAIL PROTECTED]> wrote:
> >
> >
> > Villalba, Gregorio, VF-ES (gvillal2) EXT wrote:
> >
> > >Hi,
> > >
> > >I am developing a WS client with Axis2 code generator.
> > >I want to use dual transport,  I engage the Addressing module and I 
> > >configure the transport as dual but I can not change the ReplayTo 
> > >element (that automatically appears like localhost)! It can not 
> > >be changed with messageContext.setReplyTo(aERPReplayTo).
> > >
> > >Any idea?
> > >
> > >
> > hmm, seems like you are violating the MEP concept here.
> >
> > Using Call means you are invoking an IN-OUT service. So when you 
> > send a message using Call api, the reply MUST come back to the same 
> > Call. That means you are not allowed to mess around with the 
> > replyTo. The engine will set a dynamic replyTo address for you, 
> > which then starts up a listener with the given transport, and 
> > listens to a message.
> >
> > If you are allowed to set the replyTo, you could have set that to 
> > some other EPR, and the Call which u used to invoke the service will 
> > timeout. Thats why you are not allowed to set replyTo information. 
> > So actually what you need to do is, invoke your IN-OUT web service 
> > using IN-Only manner and set the replyTo address to wherever you 
> > want. That means you basically have one client who thinks that this 
> > is an IN-Only invocation and for another client who thinks that it 
> > is an OUT only service.
> >
> > So this voids Axis2-284. So please close that issue too.
> >
> > HTH.
> >
> > -- Chinthaka
> >
> > >Thanks in advance.
> > >
> > >
> > >That is the code:
> > >
> > >
> > >org.apache.axis2.context.MessageContext
> messageContext =
> > >getMessageContext();
> > >
> > >Call call = new Call(_serviceContext);
> > >
> > >call.setTo(this.toEPR);
> > >
> > >call.engageModule(new QName(Constants.MODULE_ADDRESSING));
> > >
> > >boolean DUAL_TRANSPORT = true;
> > >call.setTransportInfo(Constants.TRANSPORT_HTTP,
> > >Constants.TRANSPORT_HTTP,true);
> > >
> > >call.setWsaAction(myProp.getProperty("subscribe.action"));
> > >call.setSoapAction(myProp.getProperty("subscribe.action"));
> > >org.apache.axis2.soap.SOAPEnvelope env =
> createEnvelope();
> > >//Style is Doc
> > >
> >
> >setV

Supplying sever-config.wsdd dynamically

2005-10-20 Thread Amey Rokde
Title: Supplying sever-config.wsdd dynamically






Hi 

We are using Axis1.2.Right now the sever-config.wsdd is placed inside the WEB-INF folder which is read by engine configuration.I would like to know if  it is possible to specify location of  server-config.wsdd as init-param of Axis Servlet or by setting some system property.I searched in mailing list but didnt find any pointers in it.

Thanks in advance

Amey






Re: Message Style Service

2005-10-20 Thread Vicente D. Guardiola Buitrago

I don't konow :P

I put its content here


deploy.wsdd

http://xml.apache.org/axis/wsdd/"; 
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";

   xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>
 
   
   
 



example.xml

http://test"; 
xmlns="http://www.w3.org/2002/03/xkms#";>

   http://www.w3.org/2002/03/xkms#KeyName
   
   http://www.w3.org/2000/09/xmldsig#";>
   Test
   
   




AH! The test client takes as his first param the filename with the XML 
to be sent and if you don't specify iit, looks for example.xml file


Bye


Carmine Gargiulo wrote:


thanx a lot :D

butwsdd and xml filewhere are?? :D

In data Thu, 20 Oct 2005 10:27:21 +0200, Vicente D. Guardiola 
Buitrago  <[EMAIL PROTECTED]> ha scritto:



First of all, thank you for your help

The code in the email is complete, but I attach you tu Java classes
(server and client), the wsdd file and an XML document example :)

MyService.java: Web Service class
Main.java: Client
example.xml: a test XML document
delpoy.wsdd: the wsdd file for AdminClient

Thanks

Carmine Gargiulo wrote:


i want help you but your code not work, cause: error in run.

The code that you've showed us...is completed for client e server??

In data Wed, 19 Oct 2005 18:43:24 +0200, Vicente D. Guardiola
Buitrago  <[EMAIL PROTECTED]> ha scritto:


No,

it's in a simple java Class, but the problem is un the client, the
constructor SOAPBodyElement modifies de XMLDoxument (byte[]) I pass
it  as paraemter.
It adds xmlns:ns1="" in every second level element in the document.


Carmine Gargiulo wrote:


the Server Code is into a servlet?



Client Code is:

public byte[] request(byte[] request){
try{
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new
URL("http://localhost:8080/axis/services/MyService";) );
SOAPBodyElement[] input = new SOAPBodyElement[1];
input[0] = new
org.apache.axis.message.SOAPBodyElement(new
ByteArrayInputStream(request));
System.out.println(call.invoke(input));
}catch(Exception e){
e.printStackTrace();
}  return null;  }


and Server Code is:

public void service(javax.xml.soap.SOAPEnvelope req,
javax.xml.soap.SOAPEnvelope resp) throws Exception {
if(myService == null){
myService = new MyService();
}
   // Request to byte[]
SOAPBody soapBody = req.getBody();
Node docBody = soapBody.getFirstChild();
   ByteArrayOutputStream inBytes = new
ByteArrayOutputStream();
TransformerFactory tf = TransformerFactory.newInstance();
Transformer trans = tf.newTransformer();
trans.transform(new DOMSource(docBody), new
StreamResult(inBytes));
 //Call the  real underlyingService
byte[] response = myService.service(inBytes.toByteArray());
 ByteArrayInputStream outBytes = new
ByteArrayInputStream(response);
DocumentBuilderFactory   docf = 
DocumentBuilderFactory.newInstance();

DocumentBuilder docb = docf.newDocumentBuilder();
Document doc = docb.parse(outBytes);

((org.apache.axis.message.SOAPEnvelope)resp).addBodyElement(new
org.apache.axis.message.SOAPBodyElement(doc.getDocumentElement()));
}


The WSDD descriptor for the service is:

http://xml.apache.org/axis/wsdd/";

xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";

xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>

  


  



I havn't WSDL (because I don't know how to write it for this kind
of   service)

Thanks a lot!

Vicente Guardiola


Carmine Gargiulo wrote:


show us all client/server code that you've wrote

In data Tue, 18 Oct 2005 10:55:12 +0200, Vicente D. Guardiola
Buitrago   <[EMAIL PROTECTED]> ha scritto:


Hello,

I want to do a Message style service because I want to send a
XMLdocument already created to the service and it returns
another XML  to  me.
I've seen in the Axis User's Guide that this type of service is
the   perfect ne to do this, because using this service the XML
keeps   unmodified, but it isn't in that way, that is, my XML is
modified,  when  I create a SOAPBodyElement with a byte[] (which
contains the XML  file  created) the XML-Document is modified by
adding sevreal  namespaces to  all the elements

Code:

 byte[] request; //An XML FIle
 ...
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new
URL("http://localhost:8080/axis/services/Service";) );
SOAPBodyElement[] input = new
SOAPBodyElement[1];   input[0] = new
org.apache.axis.message.SOAPBodyElement(new
ByteArrayInputStream(request));
call.invoke(input);


How can I keep my XM

Re: Message Style Service

2005-10-20 Thread Carmine Gargiulo

thanx a lot :D

butwsdd and xml filewhere are?? :D

In data Thu, 20 Oct 2005 10:27:21 +0200, Vicente D. Guardiola Buitrago  
<[EMAIL PROTECTED]> ha scritto:



First of all, thank you for your help

The code in the email is complete, but I attach you tu Java classes
(server and client), the wsdd file and an XML document example :)

MyService.java: Web Service class
Main.java: Client
example.xml: a test XML document
delpoy.wsdd: the wsdd file for AdminClient

Thanks

Carmine Gargiulo wrote:


i want help you but your code not work, cause: error in run.

The code that you've showed us...is completed for client e server??

In data Wed, 19 Oct 2005 18:43:24 +0200, Vicente D. Guardiola
Buitrago  <[EMAIL PROTECTED]> ha scritto:


No,

it's in a simple java Class, but the problem is un the client, the
constructor SOAPBodyElement modifies de XMLDoxument (byte[]) I pass
it  as paraemter.
It adds xmlns:ns1="" in every second level element in the document.


Carmine Gargiulo wrote:


the Server Code is into a servlet?



Client Code is:

public byte[] request(byte[] request){
try{
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new
URL("http://localhost:8080/axis/services/MyService";) );
SOAPBodyElement[] input = new SOAPBodyElement[1];
input[0] = new
org.apache.axis.message.SOAPBodyElement(new
ByteArrayInputStream(request));
System.out.println(call.invoke(input));
}catch(Exception e){
e.printStackTrace();
}  return null;  }


and Server Code is:

public void service(javax.xml.soap.SOAPEnvelope req,
javax.xml.soap.SOAPEnvelope resp) throws Exception {
if(myService == null){
myService = new MyService();
}
   // Request to byte[]
SOAPBody soapBody = req.getBody();
Node docBody = soapBody.getFirstChild();
   ByteArrayOutputStream inBytes = new
ByteArrayOutputStream();
TransformerFactory tf = TransformerFactory.newInstance();
Transformer trans = tf.newTransformer();
trans.transform(new DOMSource(docBody), new
StreamResult(inBytes));
 //Call the  real underlyingService
byte[] response = myService.service(inBytes.toByteArray());
 ByteArrayInputStream outBytes = new
ByteArrayInputStream(response);
DocumentBuilderFactory   docf = DocumentBuilderFactory.newInstance();
DocumentBuilder docb = docf.newDocumentBuilder();
Document doc = docb.parse(outBytes);

((org.apache.axis.message.SOAPEnvelope)resp).addBodyElement(new
org.apache.axis.message.SOAPBodyElement(doc.getDocumentElement()));
}


The WSDD descriptor for the service is:

http://xml.apache.org/axis/wsdd/";

xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>
  


  



I havn't WSDL (because I don't know how to write it for this kind
of   service)

Thanks a lot!

Vicente Guardiola


Carmine Gargiulo wrote:


show us all client/server code that you've wrote

In data Tue, 18 Oct 2005 10:55:12 +0200, Vicente D. Guardiola
Buitrago   <[EMAIL PROTECTED]> ha scritto:


Hello,

I want to do a Message style service because I want to send a
XMLdocument already created to the service and it returns
another XML  to  me.
I've seen in the Axis User's Guide that this type of service is
the   perfect ne to do this, because using this service the XML
keeps   unmodified, but it isn't in that way, that is, my XML is
modified,  when  I create a SOAPBodyElement with a byte[] (which
contains the XML  file  created) the XML-Document is modified by
adding sevreal  namespaces to  all the elements

Code:

 byte[] request; //An XML FIle
 ...
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new
URL("http://localhost:8080/axis/services/Service";) );
SOAPBodyElement[] input = new
SOAPBodyElement[1];   input[0] = new
org.apache.axis.message.SOAPBodyElement(new
ByteArrayInputStream(request));
call.invoke(input);


How can I keep my XML file unmodified???

Thanks

Vicente Guardiola

   __ Renovamos
el   Correo  Yahoo! Nuevos servicios, más seguridad
http://correo.yahoo.es










   __ Renovamos el
Correo  Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es










__ Renovamos el Correo
Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es












--
Carmine Gargiulo

Carmine Gargiulo usa il rivoluzionario client e-mail di Opera:  
http://www.opera.com/m2/



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
S

Re: SOAP:Header question

2005-10-20 Thread Hans Planting (CWEU-USERS/CWNL)

Hi Willem,

It sounds to me that you need to use explicit service context: the 
signature of the webservices endpoint method is extended with the parts 
of the soap:header.
This way the getFinancialDetails method will have an additional 
parameter for the authentication data - however the authentication data 
in the soap envelope is transported in the header. So you don't create a 
separate handler to deal with the header but instead deal with it in the 
endpoint method. Make sure that in the wsdl the soapheader element 
refers to a part in the request message.


Regards,
Hans


Hi,
Some help is rquired with the following problem:

I have an application on a OpenVMS system that is used by different regional
offices, where all use the same executables, but the data is completely
separated. If a person logs in, the OS will know which scripts to execute to
setup the right paths to the data, and the application will then be able to
check the authorisations of that user. If the user uses the application, he
will only have access - by this setup - to the data of his regional office.

It happens that a .NET application will access the data by a SOAP-based
webservice. This application is used by the same regional offices that use
the OpenVMS application, and will access only the data of that office. Only
users of the .NET application that are authorized will be allowed access -
be it anyone within a deparetment, or a specific user. In some cases, data
can just be accessed if requested from a certain desk only. 
This authorization is set within the dataset on the VMS machine and

maintained on that system only (for security reasons).

That means that the webservice needs to be able to set the right access
paths to the data, in order to check access by that user, on a
request-by-request basis, because, IIRC, SOAP:Header can contain
authentication information, and this can be specified in some structure. So
my idea is to use a structure in the SOAP:header, since it is required for
each and every request.

An example:
I'm working at the ICT department, and logged in on PC at the infodesk of
region . I need to get information on the financial details of client
with code 123456.
The ,NET application will build up a SOAP message containing my login
information (in the header) and  the requested information in the body:


   
   
   ITC
   infodesk
   Grooters
   


123456


and sends it to tehet webservice, method "getFinancialDetails"

The method would normally get the clientid from AXIS, but it needs the
header information as well, to be able to:
1 Set the right access paths to the data ()
2 Authorize the request (against the data of region ) (,
 and 
3 If authorized, access the data of the client ()

The problem is that it seems that I have no access to the header information
when I need it: in the service itself. How can this be solved - with this
info in the SOAP Header - not moved to the body (I'm stuck to this
structure) 





Disclaimer: 
The information contained in this E-mail and its attachments is confidential

and may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorized to
receive it. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any action in reliance
of the contents of this E-mail and any attachments is strictly prohibited
and may be unlawful. The CIP or ISC is neither liable for the proper and
complete transmission of the information contained in this E-mail and any
attachments nor for any delay in its receipt. If received in error, please
contact The CIP or ISC on +31(0)522 72 quoting the name of the sender
and the addressee and then delete it from your system. Please note that  the
The CIP or ISC does not accept any responsibility for viruses and it is your
responsibility to scan the E-mail and attachments (if any). No contracts may
be concluded on behalf of The CIP or ISC by means of E-mail communications.

 





Re: Message Style Service

2005-10-20 Thread Vicente D. Guardiola Buitrago

First of all, thank you for your help

The code in the email is complete, but I attach you tu Java classes 
(server and client), the wsdd file and an XML document example :)


MyService.java: Web Service class
Main.java: Client
example.xml: a test XML document
delpoy.wsdd: the wsdd file for AdminClient

Thanks

Carmine Gargiulo wrote:


i want help you but your code not work, cause: error in run.

The code that you've showed us...is completed for client e server??

In data Wed, 19 Oct 2005 18:43:24 +0200, Vicente D. Guardiola 
Buitrago  <[EMAIL PROTECTED]> ha scritto:



No,

it's in a simple java Class, but the problem is un the client, the  
constructor SOAPBodyElement modifies de XMLDoxument (byte[]) I pass 
it  as paraemter.

It adds xmlns:ns1="" in every second level element in the document.


Carmine Gargiulo wrote:


the Server Code is into a servlet?



Client Code is:

public byte[] request(byte[] request){
try{
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new   
URL("http://localhost:8080/axis/services/MyService";) );

SOAPBodyElement[] input = new SOAPBodyElement[1];
input[0] = new  
org.apache.axis.message.SOAPBodyElement(new   
ByteArrayInputStream(request));
System.out.println(call.invoke(input)); 
}catch(Exception e){

e.printStackTrace();
}  return null;  }


and Server Code is:

public void service(javax.xml.soap.SOAPEnvelope req,   
javax.xml.soap.SOAPEnvelope resp) throws Exception {
if(myService == null){

myService = new MyService();
}
   // Request to byte[]
SOAPBody soapBody = req.getBody();
Node docBody = soapBody.getFirstChild();
   ByteArrayOutputStream inBytes = new   
ByteArrayOutputStream();

TransformerFactory tf = TransformerFactory.newInstance();
Transformer trans = tf.newTransformer();
trans.transform(new DOMSource(docBody), new   
StreamResult(inBytes));

 //Call the  real underlyingService
byte[] response = myService.service(inBytes.toByteArray());
 ByteArrayInputStream outBytes = new   
ByteArrayInputStream(response);   
DocumentBuilderFactory   docf = DocumentBuilderFactory.newInstance();
DocumentBuilder docb = docf.newDocumentBuilder(); 
Document doc = docb.parse(outBytes);
  
((org.apache.axis.message.SOAPEnvelope)resp).addBodyElement(new   
org.apache.axis.message.SOAPBodyElement(doc.getDocumentElement()));

}


The WSDD descriptor for the service is:

http://xml.apache.org/axis/wsdd/";   

xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";

xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>
  


  



I havn't WSDL (because I don't know how to write it for this kind 
of   service)


Thanks a lot!

Vicente Guardiola


Carmine Gargiulo wrote:


show us all client/server code that you've wrote

In data Tue, 18 Oct 2005 10:55:12 +0200, Vicente D. Guardiola  
Buitrago   <[EMAIL PROTECTED]> ha scritto:



Hello,

I want to do a Message style service because I want to send a 
XMLdocument already created to the service and it returns 
another XML  to  me.
I've seen in the Axis User's Guide that this type of service is  
the   perfect ne to do this, because using this service the XML  
keeps   unmodified, but it isn't in that way, that is, my XML is  
modified,  when  I create a SOAPBodyElement with a byte[] (which  
contains the XML  file  created) the XML-Document is modified by  
adding sevreal  namespaces to  all the elements


Code:

 byte[] request; //An XML FIle
 ...
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new
URL("http://localhost:8080/axis/services/Service";) ); 
SOAPBodyElement[] input = new   
SOAPBodyElement[1];   input[0] = new   
org.apache.axis.message.SOAPBodyElement(new
ByteArrayInputStream(request));
call.invoke(input);



How can I keep my XML file unmodified???

Thanks

Vicente Guardiola

   __ Renovamos 
el   Correo  Yahoo! Nuevos servicios, más seguridad 
http://correo.yahoo.es










   __ Renovamos el  
Correo  Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es









   
__ Renovamos el Correo  
Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es








/*
 * Main.java
 *
 * Created on 20 de octubre de 2005, 9:30
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation a

network volumes on windows not accessable from webservice

2005-10-20 Thread David Teran

Hi,

i have a webservice which works pretty fine with WebObjects from  
apple. WO uses axis 1.1 and now i switched to axis 1.3 using tomcat  
5.5.9.


My application runs on windows xp and needs to access a network  
volume on that server. Its mounted on y:


The strange thing is that c: is accessable, which means that

new File("c:").exists() returns true

whereas


new File("y:").exists() returns false

Trying out a simple java app on the server leads to


new File("y:").exists() returns true but only if its not deployed  
inside as webservice with axis in tomcat. I guess it might have  
something to do with the security manager but was not able to find  
out details.


Any help would be great.

David





SOAP:Header question

2005-10-20 Thread Willem Grooters
Hi,
Some help is rquired with the following problem:

I have an application on a OpenVMS system that is used by different regional
offices, where all use the same executables, but the data is completely
separated. If a person logs in, the OS will know which scripts to execute to
setup the right paths to the data, and the application will then be able to
check the authorisations of that user. If the user uses the application, he
will only have access - by this setup - to the data of his regional office.

It happens that a .NET application will access the data by a SOAP-based
webservice. This application is used by the same regional offices that use
the OpenVMS application, and will access only the data of that office. Only
users of the .NET application that are authorized will be allowed access -
be it anyone within a deparetment, or a specific user. In some cases, data
can just be accessed if requested from a certain desk only. 
This authorization is set within the dataset on the VMS machine and
maintained on that system only (for security reasons).

That means that the webservice needs to be able to set the right access
paths to the data, in order to check access by that user, on a
request-by-request basis, because, IIRC, SOAP:Header can contain
authentication information, and this can be specified in some structure. So
my idea is to use a structure in the SOAP:header, since it is required for
each and every request.

An example:
I'm working at the ICT department, and logged in on PC at the infodesk of
region . I need to get information on the financial details of client
with code 123456.
The ,NET application will build up a SOAP message containing my login
information (in the header) and  the requested information in the body:




ITC
infodesk
Grooters



123456


and sends it to tehet webservice, method "getFinancialDetails"

The method would normally get the clientid from AXIS, but it needs the
header information as well, to be able to:
1 Set the right access paths to the data ()
2 Authorize the request (against the data of region ) (,
 and 
3 If authorized, access the data of the client ()

The problem is that it seems that I have no access to the header information
when I need it: in the service itself. How can this be solved - with this
info in the SOAP Header - not moved to the body (I'm stuck to this
structure) 
 



Disclaimer: 
The information contained in this E-mail and its attachments is confidential
and may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorized to
receive it. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any action in reliance
of the contents of this E-mail and any attachments is strictly prohibited
and may be unlawful. The CIP or ISC is neither liable for the proper and
complete transmission of the information contained in this E-mail and any
attachments nor for any delay in its receipt. If received in error, please
contact The CIP or ISC on +31(0)522 72 quoting the name of the sender
and the addressee and then delete it from your system. Please note that  the
The CIP or ISC does not accept any responsibility for viruses and it is your
responsibility to scan the E-mail and attachments (if any). No contracts may
be concluded on behalf of The CIP or ISC by means of E-mail communications.




Re: Send XML just under

2005-10-20 Thread Carmine Gargiulo

ok :)

we wait the complete source ;)

In data Thu, 20 Oct 2005 09:16:44 +0200, Vicente D. Guardiola Buitrago  
<[EMAIL PROTECTED]> ha scritto:



Hi Bhuvan,

I know that code, is mine.
Yes, the code is intended for th purpose I want but it doesn't work, as  
I "debating" with Carmine, the constructor SOAPBodyElement(byte[])
Modifies the xml document by adding to scond level elements  
xkmlns:ns1="", and so it causes a SAXParserException due to the presence  
ob blank namespaces and the actual problem: ir modifies the xml document.


If I found a "good" solution i'll send it to the mail list.

Regards,

Vicente Guardiola


Bhuvan Gupta wrote:


Looks like your mailserver filtered out the attachment.
Anyhow, here's the content of the mail which I had attached.
 START =
- Original Message - From: "Vicente D. Guardiola Buitrago"  
<[EMAIL PROTECTED]>

To: 
Sent: Tuesday, October 18, 2005 2:39 PM
Subject: Re: Message Style Service


Client Code is:

   public byte[] request(byte[] request){
   try{
   Service  service = new Service();
   Call call= (Call) service.createCall();
   call.setTargetEndpointAddress( new
URL("http://localhost:8080/axis/services/MyService";) );
   SOAPBodyElement[] input = new SOAPBodyElement[1];
   input[0] = new org.apache.axis.message.SOAPBodyElement(new
ByteArrayInputStream(request));
   System.out.println(call.invoke(input));
   }catch(Exception e){
   e.printStackTrace();
   }
   return null;
   }


and Server Code is:

   public void service(javax.xml.soap.SOAPEnvelope req,
javax.xml.soap.SOAPEnvelope resp) throws Exception {
   if(myService == null){
   myService = new MyService();
   }

   // Request to byte[]
   SOAPBody soapBody = req.getBody();
   Node docBody = soapBody.getFirstChild();

   ByteArrayOutputStream inBytes = new ByteArrayOutputStream();
   TransformerFactory tf = TransformerFactory.newInstance();
   Transformer trans = tf.newTransformer();
   trans.transform(new DOMSource(docBody), new  
StreamResult(inBytes));


   //Call the  real underlyingService
   byte[] response = myService.service(inBytes.toByteArray());


   ByteArrayInputStream outBytes = new
ByteArrayInputStream(response);
   DocumentBuilderFactory docf =  
DocumentBuilderFactory.newInstance();

   DocumentBuilder docb = docf.newDocumentBuilder();
   Document doc = docb.parse(outBytes);

   ((org.apache.axis.message.SOAPEnvelope)resp).addBodyElement(new
org.apache.axis.message.SOAPBodyElement(doc.getDocumentElement()));
   }


The WSDD descriptor for the service is:

http://xml.apache.org/axis/wsdd/";
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
   xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>
 
   
   
 



I havn't WSDL (because I don't know how to write it for this kind of
service)

Thanks a lot!

Vicente Guardiola

Carmine Gargiulo wrote:


show us all client/server code that you've wrote

In data Tue, 18 Oct 2005 10:55:12 +0200, Vicente D. Guardiola Buitrago  
<[EMAIL PROTECTED]> ha scritto:



Hello,

I want to do a Message style service because I want to send a XML  
document already created to the service and it returns another XML to  
me.
I've seen in the Axis User's Guide that this type of service is the  
perfect ne to do this, because using this service the XML keeps  
unmodified, but it isn't in that way, that is, my XML is modified,  
when I create a SOAPBodyElement with a byte[] (which contains the XML  
file created) the XML-Document is modified by adding sevreal  
namespaces to all the elements


Code:

 byte[] request; //An XML FIle
 ...
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new  
URL("http://localhost:8080/axis/services/Service";) );  
SOAPBodyElement[] input = new SOAPBodyElement[1]; input[0] = new  
org.apache.axis.message.SOAPBodyElement(new  
ByteArrayInputStream(request));   
call.invoke(input);



How can I keep my XML file unmodified???

Thanks

Vicente Guardiola



 END ===


- Original Message - From: "Carmine Gargiulo" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, October 19, 2005 8:20 PM
Subject: Re: Send XML just under 


-Bhuvan...where is the attached file???

In data Wed, 19 Oct 2005 10:56:24 +0200, Bhuvan Gupta  
<[EMAIL PROTECTED]>

ha scritto:


-Bhuvan









__ Renovamos el Correo  
Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es




--
Carmine Gargiulo

Carmine Gargiulo usa il rivoluzionario client e-mail di Opera:  
http://www.opera.com/m2/



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Vuoi pr

Re: Send XML just under

2005-10-20 Thread Vicente D. Guardiola Buitrago

Hi Bhuvan,

I know that code, is mine.
Yes, the code is intended for th purpose I want but it doesn't work, as 
I "debating" with Carmine, the constructor SOAPBodyElement(byte[])
Modifies the xml document by adding to scond level elements 
xkmlns:ns1="", and so it causes a SAXParserException due to the presence 
ob blank namespaces and the actual problem: ir modifies the xml document.


If I found a "good" solution i'll send it to the mail list.

Regards,

Vicente Guardiola


Bhuvan Gupta wrote:


Looks like your mailserver filtered out the attachment.
Anyhow, here's the content of the mail which I had attached.
 START =
- Original Message - From: "Vicente D. Guardiola Buitrago" 
<[EMAIL PROTECTED]>

To: 
Sent: Tuesday, October 18, 2005 2:39 PM
Subject: Re: Message Style Service


Client Code is:

   public byte[] request(byte[] request){
   try{
   Service  service = new Service();
   Call call= (Call) service.createCall();
   call.setTargetEndpointAddress( new
URL("http://localhost:8080/axis/services/MyService";) );
   SOAPBodyElement[] input = new SOAPBodyElement[1];
   input[0] = new org.apache.axis.message.SOAPBodyElement(new
ByteArrayInputStream(request));
   System.out.println(call.invoke(input));
   }catch(Exception e){
   e.printStackTrace();
   }
   return null;
   }


and Server Code is:

   public void service(javax.xml.soap.SOAPEnvelope req,
javax.xml.soap.SOAPEnvelope resp) throws Exception {
   if(myService == null){
   myService = new MyService();
   }

   // Request to byte[]
   SOAPBody soapBody = req.getBody();
   Node docBody = soapBody.getFirstChild();

   ByteArrayOutputStream inBytes = new ByteArrayOutputStream();
   TransformerFactory tf = TransformerFactory.newInstance();
   Transformer trans = tf.newTransformer();
   trans.transform(new DOMSource(docBody), new 
StreamResult(inBytes));


   //Call the  real underlyingService
   byte[] response = myService.service(inBytes.toByteArray());


   ByteArrayInputStream outBytes = new
ByteArrayInputStream(response);
   DocumentBuilderFactory docf = 
DocumentBuilderFactory.newInstance();

   DocumentBuilder docb = docf.newDocumentBuilder();
   Document doc = docb.parse(outBytes);

   ((org.apache.axis.message.SOAPEnvelope)resp).addBodyElement(new
org.apache.axis.message.SOAPBodyElement(doc.getDocumentElement()));
   }


The WSDD descriptor for the service is:

http://xml.apache.org/axis/wsdd/";
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
   xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>
 
   
   
 



I havn't WSDL (because I don't know how to write it for this kind of
service)

Thanks a lot!

Vicente Guardiola

Carmine Gargiulo wrote:


show us all client/server code that you've wrote

In data Tue, 18 Oct 2005 10:55:12 +0200, Vicente D. Guardiola 
Buitrago <[EMAIL PROTECTED]> ha scritto:



Hello,

I want to do a Message style service because I want to send a XML 
document already created to the service and it returns another XML 
to me.
I've seen in the Axis User's Guide that this type of service is the 
perfect ne to do this, because using this service the XML keeps 
unmodified, but it isn't in that way, that is, my XML is modified, 
when I create a SOAPBodyElement with a byte[] (which contains the 
XML file created) the XML-Document is modified by adding sevreal 
namespaces to all the elements


Code:

 byte[] request; //An XML FIle
 ...
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new 
URL("http://localhost:8080/axis/services/Service";) ); 
SOAPBodyElement[] input = new SOAPBodyElement[1]; input[0] = new 
org.apache.axis.message.SOAPBodyElement(new 
ByteArrayInputStream(request));  
call.invoke(input);



How can I keep my XML file unmodified???

Thanks

Vicente Guardiola



 END ===


- Original Message - From: "Carmine Gargiulo" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, October 19, 2005 8:20 PM
Subject: Re: Send XML just under 


-Bhuvan...where is the attached file???

In data Wed, 19 Oct 2005 10:56:24 +0200, Bhuvan Gupta 
<[EMAIL PROTECTED]>

ha scritto:


-Bhuvan









__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es


[AXIS 121] How to get prefixed elements in SOAP response

2005-10-20 Thread Denis Schlesinger
Title: Nachricht



Hi 
all,
 
I am using Axis 
1.2.1 to create a web service that returns a serialized Bean 
object. 
 
My mapping tool that 
uses this SOAP response expects a namespace prefixed root element of the SOAP 
payload. By switching "DefaultElementForm" to "unqualified" in the schema of my 
WSDL I could make the mapping tool expect all child elements of the root element 
to be unqualified as they are in the same namespace.
 
But now this tool 
still expects a qualified root Element of my payload document. Is there any way 
to get this done via AXIS?
 
Thanks!
 
Denis


Re: [Axis2] Asynchronous dual client, Call sends 2 requests

2005-10-20 Thread Saminda Abeyruwan

This has been fixed. Please try your sample with the latest SVN checkout.

Saminda

Eran Chinthaka wrote:


hmm, if this is true, then I think this is a bug.

We'll check on this and let you know the status tomorrow for sure. Any
help you can give us to reproduce this is highly appreciated.



Villalba, Gregorio, VF-ES (gvillal2) EXT wrote:

 


Hi,

My asynchronous dual "client" finally worked, but it fails sometimes (one time works and the second execution does not close the connection of the HTTP request, when it is listening). 


I am using Axis2 v0.92 with the bug fixes I asked for (thanks). The problem is that the object 
"Call" sends 2 simultaneous "posts" to the WS every time the client wants to 
send a request, I think it is a bug because I did not notice that in my old version (v0.9).

Thanks in advance.

-Mensaje original-
	De: Eran Chinthaka [mailto:[EMAIL PROTECTED] 
	Enviado el: miércoles, 19 de octubre de 2005 3:46

Para: axis-user@ws.apache.org
Asunto: Re: [Axis2] Asynchronous dual client


	This was fixed yesterday. 
	


	Villalba, Gregorio, VF-ES (gvillal2) EXT wrote: 


Hi again,

		I think I have found other problem, in the same scenario. When using "Call" with two connections, (Axis generates the header and does not allow changes), the element MessageId that is inserted is a number, and it should be an URI. 
		I am using Axis2-0.9, maybe it works in other version. 
		Anyone knows? Is it a bug?


Thanks.



---
http://schemas.xmlsoap.org/soap/envelope/"; 
 >
   
  http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
 >http://localhost:8060
  http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
 
>http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
  http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
 >
 
http://127.0.0.1:6060/axis/services/EventSource/SubscribeOp
  
  http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
 >1129648347852
   

---


-Mensaje original-
		De: Srinath Perera [mailto:[EMAIL PROTECTED] 
		Enviado el: martes, 18 de octubre de 2005 14:49

Para: axis-user@ws.apache.org
Asunto: Re: [Axis2] Asynchronous dual client


+1 Eran is 100% right. this is not a bug. If you choose the 
In-Out mep
that means you hand over the control to Axis2. So you can not 
set the Adressing Headers. (Becouse Axis2 will set up a listener fo you and 
waiting for reply).

If you need to contol addressing use In-Only MEP.

Let us close the bug
For more info read the "In-Only MEP Support: InOnlyMEPClient" 
part of article http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html

Srinath

On 10/18/05, Eran Chinthaka <[EMAIL PROTECTED]>   wrote:
		  


Villalba, Gregorio, VF-ES (gvillal2) EXT wrote:

			


Hi,

I am developing a WS client with Axis2 code 
generator.
I want to use dual transport,  I engage the Addressing module and I 
configure the transport as dual but I can not change the ReplayTo 
element (that automatically appears like localhost)! It can not 
be changed with messageContext.setReplyTo(aERPReplayTo).


Any idea?


  


hmm, seems like you are violating the MEP concept here.

			Using Call means you are invoking an IN-OUT service. So when you send 
			a message using Call api, the reply MUST come back to the same Call. 
			That means you are not a

Re: " tomcat services started and stopped .some services start and stop if ethey dont have any work,ex performance and alerts"

2005-10-20 Thread aditya mandlekar
thks vishistVishist Mandapaka <[EMAIL PROTECTED]> wrote:
Aditya,    Tomcat 5 requires jdk 5.0 and also JAVA_HOME environment variable to be set. Make sure you set that and then try to start again. Also, to start the server, open a dos prompt and change to the tomcat server directory. Type the following command at console "bin/startup.bat"Open the "catalina.out" log file. It will be in the log directory. The log file will point you in the right direction.thanksvishist.
On 10/20/05, aditya mandlekar <[EMAIL PROTECTED]> wrote:

hello freinds  iam new to tomcat and axis
i  have done installtion of tomcat 5.0.28 and followed the steps o
http://www.coreservlets.com/Apache-Tomcat-Tutorial/ 
 run->services.msc ,on clicking apache tomcat to startup it says
" tomcat services started and stopped .some services start and stop if ethey dont have any work,ex performance and alerts"
can anyu one help in this regard


Yahoo! Music Unlimited - Access over 1 million songs. Try it free. 

		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: " tomcat services started and stopped .some services start and stop if ethey dont have any work,ex performance and alerts"

2005-10-20 Thread Vishist Mandapaka
Aditya,    Tomcat 5 requires jdk 5.0 and also JAVA_HOME environment variable to be set. Make sure you set that and then try to start again. Also, to start the server, open a dos prompt and change to the tomcat server directory. Type the following command at console
"bin/startup.bat"Open the "catalina.out" log file. It will be in the log directory. The log file will point you in the right direction.thanksvishist.
On 10/20/05, aditya mandlekar <[EMAIL PROTECTED]> wrote:
hello freinds  iam new to tomcat and axis
i  have done installtion of tomcat 5.0.28 and followed the steps o
http://www.coreservlets.com/Apache-Tomcat-Tutorial/ 
 run->services.msc ,on clicking apache tomcat to startup it says
" tomcat services started and stopped .some services start and stop if ethey dont have any work,ex performance and alerts"
can anyu one help in this regard
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.