Axis 1.2.1 and Microsoft Office 2003 Web Services Toolkit interoperability

2005-08-19 Thread Nicklas Karlsson
Hello,

 I have deployed a proto for a WS in Axis 1.2.1 that is working
just fine with a dummy Axis client but I have some problems getting it
to work with the O2003 Toolkit. The wizard finds the WS just fine and
generates the code but when running it an error occurs when initing the
service:

SoapMapper:The schema definition with a targetnamespace of http://schemas.xmlsoap.org/soap/encoding/ for 
SoapMapper string could not be found HRESULT=0x80004005: Unspecified error - WSDLOperation:Initialization 
of a SoapMapper for operation dump failed HRESULT=0x80004005: Unspecified error - WSDLOperation:
Initializing of the output messaged failed for operation dump HRESULT=0x80004005: Unspecified error

I am quite the noob when it comes to XML and WS :-/ Is it something
with the namespace/soapenc or? It would be nice if I could present an
Excel view of the data generated in Axis to our customer. It is
supposed to return an array of Product objects (containing only a
string attribute for now).

Thankful for any assistance!,
 - Nik

The wsdl generated by Axis is:

?xml version=1.0 encoding=UTF-8?
wsdl:definitions targetNamespace=urn:dumper xmlns:impl=urn:dumper xmlns:intf=urn:dumper 
xmlns:apachesoap=http://xml.apache.org/xml-soap xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/ 

xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ xmlns:xsd=http://www.w3.org/2001/XMLSchema 

xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/
!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)--
 wsdl:types
 schema xmlns=http://www.w3.org/2001/XMLSchema targetNamespace=urn:dumper
 import namespace=http://schemas.xmlsoap.org/soap/encoding//
 complexType name=Product
 sequence

element name=name nillable=true type=soapenc:string/
 /sequence
 /complexType
 complexType name=ArrayOfProduct
 complexContent

restriction base=soapenc:Array

attribute ref=soapenc:arrayType
wsdl:arrayType=impl:Product[]/
 /restriction
 /complexContent
 /complexType
 /schema
 /wsdl:types
 wsdl:message name=dumpRequest
 /wsdl:message
 wsdl:message name=dumpResponse
 wsdl:part name=dumpReturn type=impl:ArrayOfProduct/
 /wsdl:message
 wsdl:portType name=DumperService
 wsdl:operation name=dump
 wsdl:input name=dumpRequest message=impl:dumpRequest/
 wsdl:output name=dumpResponse message=impl:dumpResponse/
 /wsdl:operation
 /wsdl:portType
 wsdl:binding name=DumperSoapBinding type=impl:DumperService
 wsdlsoap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/
 wsdl:operation name=dump
 wsdlsoap:operation soapAction=/
 wsdl:input name=dumpRequest

wsdlsoap:body use=encoded
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
namespace=urn:dumper/
 /wsdl:input
 wsdl:output name=dumpResponse

wsdlsoap:body use=encoded
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
namespace=urn:dumper/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 wsdl:service name=DumperServiceService
 wsdl:port name=Dumper binding=impl:DumperSoapBinding
 wsdlsoap:address location=http://localhost:8080/axis/services/Dumper/
 /wsdl:port
 /wsdl:service
/wsdl:definitions



RE: manual parsing in RPC-style

2005-08-19 Thread Keith Hatton
xsd:any ?


-Original Message-
From: Enric Jaen [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2005 21:00
To: axis-user@ws.apache.org
Subject: manual parsing in RPC-style 


Hi all,
I have a question about XSD in RPC style web services. Is there any XSD
construct where it is not possible to generate a mapping in Java? In
other words, is there any situation where the developer is required to
manually parse an XML data type?

Thanks for any hint,
-Enric




application scope in axis 1.2

2005-08-19 Thread richard falconer

Hi,

I originally deployed my axis 1.2.1 service with the parameter
name=scope value=Session/ As expected each time my client invokes a
service method a new instance of the class is created to satisfy the
request. However I've tried to change this so that I can do some one-off
bootstrapping of resources so changed the parameter setting to the following:

parameter name=scope value=Application/

However I'm still getting a new instance of my class generated for each
client request. Also tried removing the parameter altogether but again my
class is being re-created each time a request comes in.

Any help appreciated,
thanks Richard 





RE: application scope in axis 1.2

2005-08-19 Thread GIBERT Philippe RD-BIZZ-SOP
 
Hi richard
It works well form me .. But i have value=application .. Just the a in 
lowercase
philippe
-Message d'origine-
De : richard falconer [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 19 août 2005 11:45
À : axis-user@ws.apache.org
Objet : application scope in axis 1.2

Hi,

I originally deployed my axis 1.2.1 service with the parameter name=scope 
value=Session/ As expected each time my client invokes a service method a 
new instance of the class is created to satisfy the request. However I've tried 
to change this so that I can do some one-off bootstrapping of resources so 
changed the parameter setting to the following:

parameter name=scope value=Application/

However I'm still getting a new instance of my class generated for each client 
request. Also tried removing the parameter altogether but again my class is 
being re-created each time a request comes in.

Any help appreciated,
thanks Richard 




RE: application scope in axis 1.2

2005-08-19 Thread richard falconer
Thanks Philippe but I've already tried that so not sure what I'm doing 
wrong

R

At 10:48 19/08/2005, you wrote:


Hi richard
It works well form me .. But i have value=application .. Just the a in 
lowercase

philippe
-Message d'origine-
De : richard falconer [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 19 août 2005 11:45
À : axis-user@ws.apache.org
Objet : application scope in axis 1.2

Hi,

I originally deployed my axis 1.2.1 service with the parameter 
name=scope value=Session/ As expected each time my client invokes a 
service method a new instance of the class is created to satisfy the 
request. However I've tried to change this so that I can do some one-off 
bootstrapping of resources so changed the parameter setting to the following:


parameter name=scope value=Application/

However I'm still getting a new instance of my class generated for each 
client request. Also tried removing the parameter altogether but again my 
class is being re-created each time a request comes in.


Any help appreciated,
thanks Richard





AW: Attachments/ Locked files?

2005-08-19 Thread Ferruh Zamangoer
Hello Davanum,

first sorry for the cross post. Second where can I report the bug and when
does the bug will be solved? 

Regards
Ferruh

-Ursprüngliche Nachricht-
Von: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. August 2005 22:48
An: axis-user@ws.apache.org
Cc: axis-dev@ws.apache.org
Betreff: Re: Attachments/ Locked files?

Please log a bug AND Please don't cross post.

-- dims

On 8/18/05, Ferruh Zamangoer [EMAIL PROTECTED] wrote:
  
  
 
 Hi, 
 
   
 
 we are using AXIS WS to send some MP3 files to an server where we register
 these files. The problem which occurred in our scenario is that after we
 have send the file we want to delete the local file on the filesystem. But
 we can't delete the file because anything references or blocks the file.
We
 have localized that the problem occurs in the part after the webservice
 call. For sending our file as attachment we use the following code lines. 
 
   
 
 DataHandler contentHandler = 
 
 new DataHandler( 
 
 new FileDataSource( 
 
 contentInfo.getValueByName( 
 
 AudioFileInfo.PATH_ENTRY))); 
 
   
 
   
 
   
 
 Does anybody have the same problem in informer Time? How can we solve this
 problem. I'am not sure but I think that the error occurs in axis, because
 any Stream or reference is not unlocked? 
 
   
 
 Can anybody help? 
 
   
 
 Thanks for any help in advance. 
 
   
 
   
 
 Regards 
 
   
 
 Ferruh 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform



Re: AW: Attachments/ Locked files?

2005-08-19 Thread csj
Ferruh -

You can find the answers to several of your questions on the Axis website.

See: http://ws.apache.org/axis/bugs.html

Thanks
..Chris



On Fri, 19 Aug 2005, Ferruh Zamangoer wrote:

 Hello Davanum,

 first sorry for the cross post. Second where can I report the bug and when
 does the bug will be solved?

 Regards
 Ferruh

 -Ursprüngliche Nachricht-
 Von: Davanum Srinivas [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 18. August 2005 22:48
 An: axis-user@ws.apache.org
 Cc: axis-dev@ws.apache.org
 Betreff: Re: Attachments/ Locked files?

 Please log a bug AND Please don't cross post.

 -- dims

 On 8/18/05, Ferruh Zamangoer [EMAIL PROTECTED] wrote:
 
 
 
  Hi,
 
 
 
  we are using AXIS WS to send some MP3 files to an server where we register
  these files. The problem which occurred in our scenario is that after we
  have send the file we want to delete the local file on the filesystem. But
  we can't delete the file because anything references or blocks the file.
 We
  have localized that the problem occurs in the part after the webservice
  call. For sending our file as attachment we use the following code lines.
 
 
 
  DataHandler contentHandler =
 
  new DataHandler(
 
  new FileDataSource(
 
  contentInfo.getValueByName(
 
  AudioFileInfo.PATH_ENTRY)));
 
 
 
 
 
 
 
  Does anybody have the same problem in informer Time? How can we solve this
  problem. I'am not sure but I think that the error occurs in axis, because
  any Stream or reference is not unlocked?
 
 
 
  Can anybody help?
 
 
 
  Thanks for any help in advance.
 
 
 
 
 
  Regards
 
 
 
  Ferruh


 --
 Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform




AW: AW: Attachments/ Locked files?

2005-08-19 Thread Ferruh Zamangoer
Thanks I have found it.

-Ursprüngliche Nachricht-
Von: csj [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. August 2005 13:57
An: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: Attachments/ Locked files?

Ferruh -

You can find the answers to several of your questions on the Axis website.

See: http://ws.apache.org/axis/bugs.html

Thanks
..Chris



On Fri, 19 Aug 2005, Ferruh Zamangoer wrote:

 Hello Davanum,

 first sorry for the cross post. Second where can I report the bug and when
 does the bug will be solved?

 Regards
 Ferruh

 -Ursprüngliche Nachricht-
 Von: Davanum Srinivas [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 18. August 2005 22:48
 An: axis-user@ws.apache.org
 Cc: axis-dev@ws.apache.org
 Betreff: Re: Attachments/ Locked files?

 Please log a bug AND Please don't cross post.

 -- dims

 On 8/18/05, Ferruh Zamangoer [EMAIL PROTECTED] wrote:
 
 
 
  Hi,
 
 
 
  we are using AXIS WS to send some MP3 files to an server where we
register
  these files. The problem which occurred in our scenario is that after we
  have send the file we want to delete the local file on the filesystem.
But
  we can't delete the file because anything references or blocks the file.
 We
  have localized that the problem occurs in the part after the webservice
  call. For sending our file as attachment we use the following code
lines.
 
 
 
  DataHandler contentHandler =
 
  new DataHandler(
 
  new FileDataSource(
 
  contentInfo.getValueByName(
 
  AudioFileInfo.PATH_ENTRY)));
 
 
 
 
 
 
 
  Does anybody have the same problem in informer Time? How can we solve
this
  problem. I'am not sure but I think that the error occurs in axis,
because
  any Stream or reference is not unlocked?
 
 
 
  Can anybody help?
 
 
 
  Thanks for any help in advance.
 
 
 
 
 
  Regards
 
 
 
  Ferruh


 --
 Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform





RE: Axis 1.2.1 and Microsoft Office 2003 Web Services Toolkit interoperability

2005-08-19 Thread Flores, Raul



It appears to be an rpc/encoded service, which will not 
play with .net.
Alter the service to a doc/lit 
service.

Raul Flores 


From: Nicklas Karlsson 
[mailto:[EMAIL PROTECTED] Sent: Friday, August 19, 2005 3:06 
AMTo: axis-user@ws.apache.orgSubject: Axis 1.2.1 and 
Microsoft Office 2003 Web Services Toolkit interoperability
Hello, I have deployed a proto for a WS in Axis 1.2.1 
that is working just fine with a dummy Axis client but I have some problems 
getting it to work with the O2003 Toolkit. The wizard finds the WS just fine and 
generates the code but when running it an error occurs when initing the 
service:"SoapMapper:The schema definition with a targetnamespace of http://schemas.xmlsoap.org/soap/encoding/ 
for SoapMapper string could not be found HRESULT=0x80004005: Unspecified 
error - WSDLOperation:Initialization of a SoapMapper for operation dump 
failed HRESULT=0x80004005: Unspecified error - WSDLOperation:Initializing of 
the output messaged failed for operation dump HRESULT=0x80004005: Unspecified 
error"I am quite the noob when it comes to XML and WS :-/ Is it 
something with the namespace/soapenc or? It would be nice if I could present an 
Excel view of the data generated in Axis to our customer. It is supposed 
to return an array of Product objects (containing only a string attribute for 
now).Thankful for any assistance!, - NikThe wsdl 
generated by Axis is:?xml version="1.0" 
encoding="UTF-8"?wsdl:definitions targetNamespace="urn:dumper" 
xmlns:impl="urn:dumper" xmlns:intf="urn:dumper" xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"!--WSDL 
created by Apache Axis version: 1.2.1Built on Jun 14, 2005 (09:15:57 
EDT)-- wsdl:types 
schema xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="urn:dumper" 
import namespace="http://schemas.xmlsoap.org/soap/encoding/"/ 
complexType 
name="Product" 
sequence 
element name="name" nillable="true" 
type="soapenc:string"/ 
/sequence 
/complexType 
complexType 
name="ArrayOfProduct" 
complexContent 
restriction 
base="soapenc:Array" 
attribute ref="soapenc:arrayType" 
wsdl:arrayType="impl:Product[]"/ 
/restriction 
/complexContent 
/complexType 
/schema /wsdl:types 
wsdl:message name="dumpRequest" 
/wsdl:message wsdl:message 
name="dumpResponse" wsdl:part 
name="dumpReturn" type="impl:ArrayOfProduct"/ 
/wsdl:message wsdl:portType 
name="DumperService" wsdl:operation 
name="dump" 
wsdl:input name="dumpRequest" 
message="impl:dumpRequest"/ 
wsdl:output name="dumpResponse" 
message="impl:dumpResponse"/ 
/wsdl:operation /wsdl:portType 
wsdl:binding name="DumperSoapBinding" 
type="impl:DumperService" 
wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/ 
wsdl:operation 
name="dump" 
wsdlsoap:operation 
soapAction=""/ 
wsdl:input 
name="dumpRequest" 
wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:dumper"/ 
/wsdl:input 
wsdl:output 
name="dumpResponse" 
wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:dumper"/ 
/wsdl:output 
/wsdl:operation /wsdl:binding 
wsdl:service 
name="DumperServiceService" wsdl:port 
name="Dumper" 
binding="impl:DumperSoapBinding" 
wsdlsoap:address location="http://localhost:8080/axis/services/Dumper"/ 
/wsdl:port 
/wsdl:service/wsdl:definitions


RE: Is there any way to set up the Axis running without depending on any web server?

2005-08-19 Thread Chen, Donald
Jeff, thanks for this secret Standalone.

Don

-Original Message-
From: Jeff Greif [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 18, 2005 4:32 PM
To: axis-user@ws.apache.org
Subject: Re: Is there any way to set up the Axis running without
depending on any web server?

http://wiki.apache.org/ws/FrontPage/Axis/Standalone

Chen, Donald wrote:

Hi, there. 

This may be a ridiculous question, but I can not help to wonder if
Axis has to live with a web server like Tomcat or WebLogic to be
functioning?

If there is a way for Axis be functioning solely on its own feet, that
will be great.

  




RE: changing the reponse character encoding

2005-08-19 Thread pietila . meghan
Rob, I ran across this JIRA issues a few days ago while looking into UTF-16 
encoding.  The discussion here may help answer your questions:

http://issues.apache.org/jira/browse/AXIS-1682

The upshot is, it looks like the Axis service will respond in whatever encoding 
the client sends in.  I am using a Siebel service, but setting this property 
did allow me to send from my client in UTF-16, using Axis 1.2.1.

Meghan


From Robert Dietrick ([EMAIL PROTECTED]) on 08/18/2005 at 05:53 PM:

I want to force the character encoding of the response from *one* method 
of my service to UTF-16, but I'm not having any luck finding out how to 
do this.  Can anyone provide a pointer?

Thanks.

-rob


Fw: Re: How to get Envelope String - or other ideas? - Solved

2005-08-19 Thread Mike . Witters
In case anyone ever runs across the same issue...  I had a different version of the Commons Http Client jar file than axis ships within my class path (web-inf/lib directory) for some other work that the application was doing.It apparently hassome mismatched code that was causing the cookie to get lost.  Thanks. -Forwarded by Mike Witters/People/Perficient on 08/19/2005 10:29AM -To: axis-user@ws.apache.orgFrom: Mike Witters/People/PerficientDate: 08/18/2005 11:27AMSubject: Re: How to get Envelope String - or other ideas?Thanks for the advice. This is one of the things that I had seen hashed over several times in previous emails in the archive. I had tried it before and it didn't work, but I knew that so many people wouldnt have said it works if it didnt. So I tried again usingsmall test case from a command like application and it worked. Using the TCP Monitor I can see the Header for the cookie in the Http transaction. The wierd thing is that when I do the exact same code from within my WebSphere portal application the cookie is not set when watching in TCP Monitor so I get denied entry into my web service. This is why Ididnt think it worked for the past few days. I'm not sure that thisis an Axis problem since it only happens when running in WebSphere, but I'm not sure how WebSphere portal could be doing something to remove the cookieeither.  Any ideas, anyone? Thanks.  -Davanum Srinivas [EMAIL PROTECTED] wrote: - To: axis-user@ws.apache.org From: Davanum Srinivas [EMAIL PROTECTED] Date: 08/17/2005 03:09PM Subject: Re: How to get Envelope String - or other ideas? See http://shemnon.com/speling/archives/98.html on how to set the cookie by yourself. -- dims On 8/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:   I have to write a web service client in short time that calls a web service  running on a WebSphere app server. The service is not under my control as  it is a vendor product. The service is in our SSO domain so we can call it  with the LTPA token as a cookie(actually its a requirement for SSO since it  is a background call) and not require the user's password. I didnt see a  way to do this using the custom cookie (LtpaToken) with Axis even though  similar things were hashed over in hundreds of posts to this list. For now  I have a quick solution using Apache SOAP that works where: I use Apache  SOAP to build the request envelope then unmarshal it into String, use  Commons HttpClient to send it after adding the Http Header representing the  LtpaToken as a cookie to the request, then use Apache SOAP to marshal the  response back into a response envelope for processing. Its convoluted, I  know, but the SSO works and I didnt see a better way in the time I need it  done.The problem is that some of the vendors services take org.w3c.dom.Elements  as arguments and Apache SOAP has no serializers/deserializers for (literal)  Elements. Apache Axis handles org.w3c.dom.Elements fine, but it appears to  be a much more difficult proposition to get the String, or byte[]  representation of the Envelope that it intends to send across the wire, user  HttpClient to actually send it, and then to build a response envelope from  the response bytes that come back through HttpClient. Can anyone point me  to a quick way to do one, or both? Or am I missing the boat and there is an  easier way to add the cookie to the request when Axis goes to send the  request?Thanks in advance.  Mike   -- Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform 


Re: Is there any way to set up the Axis running without depending on any web server?

2005-08-19 Thread Javier Gonzalez
Be sure to read the line that says Not for production use twice ;)

On 8/19/05, Chen, Donald [EMAIL PROTECTED] wrote:
 Jeff, thanks for this secret Standalone.
 
 Don
 
 -Original Message-
 From: Jeff Greif [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 18, 2005 4:32 PM
 To: axis-user@ws.apache.org
 Subject: Re: Is there any way to set up the Axis running without
 depending on any web server?
 
 http://wiki.apache.org/ws/FrontPage/Axis/Standalone
 
 Chen, Donald wrote:
 
 Hi, there.
 
 This may be a ridiculous question, but I can not help to wonder if
 Axis has to live with a web server like Tomcat or WebLogic to be
 functioning?
 
 If there is a way for Axis be functioning solely on its own feet, that
 will be great.
 
 
 
 
 


-- 
Javier Gonzalez Nicolini


question on Axis Client --- sending multiple requests on a same connection before getting back response

2005-08-19 Thread Feng Xie \(fxie\)



Is there any way to 
let the Axis Client to send multiple requests before getting backany 
response ? In another words, howdo I test the"pipe lining" 
performance of webservice server ?

Thanks,
Feng


Again JiBX rocks ...

2005-08-19 Thread Kr
Hi,

The article at http://webservices.sys-con.com/read/114130.htm ranks
JiBX ahead of its competitors for its performance and XMLBeans seems
to be poor at (un)marshalling and performance then any reasons why is
it chosen for AXIS2.

Any thoughts ?


- Kr.


could not find deserializer for type DataHandler (Version Problem 1.1 vs 1.2.1)

2005-08-19 Thread Peter Koch
hi folks,

I'm using apache axis with attachments (DataHandler).

Everything works fine using 1.1 both on client and server.


Now I migrated to 1.2.1.

When I run now the client using 1.2.1 and the server with 1.2.1 -- everything 
fine.

When I run the old client using 1.1 and the server with 1.2.1 I get in the 
client:

org.xml.sax.SAXException: Deserializing parameter 
'getCmDbContentModsReturn':  could not find deserializer for type DataHandler


I've got many clients out there using 1.1 and I don't wont to / I can't (!!!) 
migrate all of them.

Whats the problem here ?

best regards,
peter




wsdd:
!-- 
Version: 10.11.2003 pk: first release
Version: 03.11.2003 pk: created
-- 
deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
  service name=soap/UpDownloadService/v1 provider=java:RPC
parameter name=className 
value=ivyteam.webapp.admin.webservice.updownload.v1.UpDownloadService/
parameter name=allowedMethods value=*/
typeMapping 
deserializer=org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
  languageSpecificType=java:javax.activation.DataHandler 
qname=DataHandler
  serializer=org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory 
  encodingStyle=http://schemas.xmlsoap.org/soap/encoding//  
parameter name=scope value=session/
beanMapping qname=ns2:FileInfo xmlns:ns2=http://util.webapp.cs.ivyteam;
  languageSpecificType=java:ivyteam.cs.webapp.util.FileInfo/
beanMapping qname=ns2:StartConfig 
xmlns:ns2=http://util.webapp.cs.ivyteam;
  languageSpecificType=java:ivyteam.cs.webapp.util.StartConfig/  
beanMapping qname=ns2:WebServiceBeanConfig 
xmlns:ns2=http://util.webapp.cs.ivyteam;
  languageSpecificType=java:ivyteam.cs.webapp.util.WebServiceBeanConfig/ 
   
beanMapping qname=ns2:EventBeanConfig 
xmlns:ns2=http://util.webapp.cs.ivyteam;
  languageSpecificType=java:ivyteam.cs.webapp.util.EventBeanConfig/  
beanMapping qname=ns2:PageConfig 
xmlns:ns2=http://util.webapp.cs.ivyteam;
  languageSpecificType=java:ivyteam.cs.webapp.util.PageConfig/  
!-- Run this before processing the request --
requestFlow 
  handler 
type=java:ivyteam.webapp.admin.webservice.base.v1.LogRequestHandler
  /handler 
/requestFlow 
!-- Run these after processing the request --   
responseFlow 
  handler 
type=java:ivyteam.webapp.admin.webservice.base.v1.LogResponseHandler
  /handler 
/responseFlow
  /service 
/deployment

server code:

  public DataHandler getCmDbContentMods(int processModelId, int versionNumber)
throws Throwable
  {
try
{
  if (!this.isLoggedIn())
  {
throw new AuthorizationException(AuthorizationException.UNKNOWN_USER);
  }

  String str =
this.internalUploadInterface.getCmDbContentMods(
  processModelId,
  versionNumber);

  //the mime type here is the default mime type: application/octet-stream
  DataSource ds =
new ByteArrayDataSource(str.getBytes(), DATASOURCE_ENCODING);
  return new DataHandler(ds);
}
catch (Throwable t)
{
  logger.severe(
UpDownloadService,
getCmDbContentMods,
t.getMessage(),
t);
  throw t;
}
  }



[Axis2] Re: Again JiBX rocks ...

2005-08-19 Thread Davanum Srinivas
Axis2's aim is to support multiple data-binding frameworks...

-- dims

On 8/19/05, Kr [EMAIL PROTECTED] wrote:
 Hi,
 
 The article at http://webservices.sys-con.com/read/114130.htm ranks
 JiBX ahead of its competitors for its performance and XMLBeans seems
 to be poor at (un)marshalling and performance then any reasons why is
 it chosen for AXIS2.
 
 Any thoughts ?
 
 
 - Kr.
 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform


Re: [Axis2] Re: Again JiBX rocks ...

2005-08-19 Thread Dennis Sosnoski
And I'm actively working to add JiBX support to Axis2. This in no way 
represents a loss of interest in JibxSoap - I'm pushing to get out the 
first beta version of JibxSoap now - but does provide some nice 
cross-pollination: Many of the issues I'm dealing with in JibxSoap apply 
directly to data binding support for Axis2, while following the Axis2 
work has made me rethink some of my assumptions and structural ideas 
behind JibxSoap.


XMLBeans does provide some very nice advantages to developers, 
especially those who need to work with not just the data from XML 
documents but the actual document structure. XMLBeans also has excellent 
schema support. JiBX is faster and uses less memory, but is much more 
focused on data binding rather than on providing access to the full 
document structure. JiBX 1.0 also has limited schema support, and only 
provides a relatively crude form of code generation from schema at present.


 - Dennis

Davanum Srinivas wrote:


Axis2's aim is to support multiple data-binding frameworks...

-- dims

On 8/19/05, Kr [EMAIL PROTECTED] wrote:
 


Hi,

The article at http://webservices.sys-con.com/read/114130.htm ranks
JiBX ahead of its competitors for its performance and XMLBeans seems
to be poor at (un)marshalling and performance then any reasons why is
it chosen for AXIS2.

Any thoughts ?


- Kr.

   




 



Including Attachments to a SOAP Response

2005-08-19 Thread Mukesh Kumar Maniraj
Hi ,
I was able to successfully include attachments to a SOAP request and also receive it on the server side.
Now, I am trying to include attachments to a SOAP response , and I am getting a null response from the client side,
call.invoke(Object[] params),
I am included the mail.jar and activation.jar files on the client and server side,
I am using Axis 1.1.
Please go through the below code and ket me know your thoughts of what might be the problem.
Greatly appreciate your help,
Thanks a lot,
-Mukesh

My client side code snippet is as follows:
===
call.setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT,Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);  

Object retval = call.invoke(new Object[] {pMgr.getAmaCN()}); // I am getting a null value returned
My server side code is as follows:
==
MessageContext msgContext = MessageContext.getCurrentContext();
Message responseMsg = msgContext.getResponseMessage();  
AttachmentPart attachmentPart=new AttachmentPart(new DataHandler(new 
FileDataSource(aonsBundle.getExtensionsZipArchiveFullPath(;


 responseMsg.addAttachmentPart(attachmentPart);
 responseMsg.saveChanges();


Re: Good basic walk-through needed

2005-08-19 Thread Ian Piper
Thanks for all the responses on this, on- and off-list. Very useful - just what I was looking for.Ian. -- Dr Ian M Piper [EMAIL PROTECTED] -- Where is the wisdom we have lost in knowledge?  Where is the knowledge we have lost in information?  On 18 Aug 2005, at 3:09, Miller, Janet wrote:Here's some more link that might be helpful: http://www.developer.com/open/article.php/3443951http://www.developer.com/open/article.php/2237251http://www.lucianofiandesio.com/javatales/axant.htmlhttp://javaboutique.internet.com/tutorials/Axis/http://www.linux-mag.com/2002-08/axis_01.html Jan-Original Message-From: Edward Taaffe [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 18, 2005 4:50 AMTo: axis-user@ws.apache.orgSubject: RE: Good basic walk-through neededJust stumbled on this, it might help http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html  From: Ian Piper [mailto:[EMAIL PROTECTED]] Sent: 16 August 2005 14:19To: axis-user@ws.apache.orgSubject: Good basic walk-through needed Can anyone point me at a good working walk-through of Web Services using Axis (1.1 or 1.2)? Tutorials that I have found on the web so far are old (examples using features from the beta version of Axis, for instance) and even the first tutorial in the Axis User Guide does not work. The URLhttp://soapinterop.org used in example 1 in the operation name is not a working url and there is a minor typo in the same line:  call.setOperationName(new QName("http://soapinterop.org/", echoString")); //leading " missing Any pointers to up-to-date worked (and working) examples would be much appreciated. Thanks,  Ian.--Dr Ian M Piper[EMAIL PROTECTED]--Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?