Re: List of Possible Exception Messages?
How about 'grep -r "throw new" *' for the original question ? Thanks, Toshi <[EMAIL PROTECTED]> On Wed, 6 Apr 2005, Peter Smith wrote: how about the messages in ws-axis\java\build\classes\org\apache\axis\i18n\resource.properties? But from what I've remember of that file, the messages were a random mixture of the following categories: a) exception messages b) logging/tracing output c) gui/console output d) redundant message that is not used anywhere in Axis code Furthermore, the key names seemed to be any old unique string which don't necesarily indicate which category they belong to. Peter.
design question xsd:anyType/java Object
Hello, It seems that support for xsd:anyType (java Object) is optional in JAX-RPC, though Axis supports it. What would you suggest as an alternative to a JavaBean like this: public class Property { private String name; private Object value; // getters + setters ... } It's useful in exposing methods like this: public Property[] getProperties(...); public void setProperties(Property[] props); The current implementation works in Axis, at runtime everything seems to be OK as long as the "value" is of a type that can be serialized. Wrapped doc/literal doesn't support polymorphism from what I read. I'm wondering if there are any issues I may run into (besides running into a type that can't be serialized at runtime, I can prevent that at least on the server side). Should I continue using it if it works or is there a better approach? Thanks. -- Tim
Re: List of Possible Exception Messages?
how about the messages in ws-axis\java\build\classes\org\apache\axis\i18n\resource.properties? But from what I've remember of that file, the messages were a random mixture of the following categories: a) exception messages b) logging/tracing output c) gui/console output d) redundant message that is not used anywhere in Axis code Furthermore, the key names seemed to be any old unique string which don't necesarily indicate which category they belong to. Peter. This is an email from Fujitsu Australia Software Technology Pty Ltd, ABN 27 003 693 481. It is confidential to the ordinary user of the email address to which it was addressed and may contain copyright and/or legally privileged information. No one else may read, print, store, copy or forward all or any of it or its attachments. If you receive this email in error, please return to sender. Thank you. If you do not wish to receive commercial email messages from Fujitsu Australia Software Technology Pty Ltd, please email [EMAIL PROTECTED]
Configuring an independent Axis client
Hi All, This question seems to continue the fine tradition of confusion over configuring an Axis client's properties. The situation is that I am writing a client that can be provided to people to use in their applications. This client essentially consumes a web service that I publish so that they can be serviced by it. The client uses Axis and does authentication of identities and encryption of data using SSL (JSSE). I know that I can use AxisProperties to change the behaviour of the client, such as: AxisProperties.setProperty("axis.socketSecureFactory", "test.AXISSocketFactory"); to change the socket factory that the client uses to create SSL connections, but this approach is still isn't targeted enough. The problem is that my client software cannot make any assumptions about where it is getting called from. It can be in its own JVM (the easiest case), or it can be deployed in an app server as part of another app. If that other app also uses Axis, a problem arises. By setting AxisProperties.setProperty(foo, bar) I am setting foo = bar for any Axis implementation running in the classloader I am part of (this information coming from the AxisProperties JavaDoc page). This means that System.setProperty(), AxisProperties.setProperty() and any java -Dblah won't work - they're all too heavy handed (not targeted enough) So my question is, is there a way to even further narrow the effect of an Axis client configuration to my client alone. Or is my only hope to confine my client to its own classloader? (tried this and ran into problems with calling the instantiated class from the main app's classloader - ClassCastExceptions - naturally) I seem to have read everything I can find on the topic, but nobody seems to have addressed this finely grained configuration requirement yet. There must be a way to do this, I'm just not having much luck finding it. Thanks, Deakin.
Re: string arrays as input parameters in in doc/literal services
On Apr 6, 2005 5:07 AM, MKW <[EMAIL PROTECTED]> wrote: > plus I've tried adding (is this read when there is a ref to a wsdl file?): > xmlns:ns="http://dct"; >qname="ns:ArrayOf_xsd_string" >type="java:string[]" >serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" > deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" >encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > try changing the type to type="java:java.lang.String[]" - venkat
Re: List of Possible Exception Messages?
how about the messages in ws-axis\java\build\classes\org\apache\axis\i18n\resource.properties? - venkat On Apr 5, 2005 7:18 PM, Mark Leone <[EMAIL PROTECTED]> wrote: > My project is consuming services from an Axis server, and we'd like to > compile a list of the possible faultstring values we could get returned > in a SOAP fault message, so we can design an auditing service that > properly accounts for all known error conditions that fit certain > criteria. I thought I might get this info from the Axis source code, but > it looks like I'd have to go through every class that invokes an > Exception, and note the message string that it passes to the exception > object, as the message strings with which exceptions are invoked usually > make their way into the faultstring element of the SOAP fault message. > The info is not important enough to justify that sort of effort, but I > was wondering if there might be documented somewhere already a list of > the exception messages/faultstring values generated by the Axis code. > Even a partial list would be of some value. > >
wrapped doc/literal and Object vs. primitive types
Hello, Is it OK to use the wrapper objects and arrays of wrapper objects, e.g. Long and Long[] vs. long and long[] for wrapped doc/literal? Will this work with .NET? I know that it doesn't work for rpc/encoded with .NET as .NET will send xsd:long rather than soapenc:long so if a method takes a Long argument Axis will expect soapenc:long and instead it gets xsd:long. Will wrapped doc/literal make this possible and allow sending null values which is not possible with the primitive types? Or is the recommendation to always use primitive types and forget about the wrapper objects? Thank you for your answers. -- Tim
type mapping registry
I'd like to create a facade on top of an axis-generated web service proxy that does some type substitutions with derived classes representing XML schema elements; no new content but more convenience accessors, particularly to help with and pointers and backpointers. Our web service is evolving so I don't want to precompile a library with hardcoded mappings. Can someone suggest a way to do this? I've tried accessing the type library from an override of the service createCall method that tries to redefine a type handler, but this doesn't seem to be having an effect. I've been trying to run through with the debugger butI'm having trouble building the current library, and the head revision doesn't match in these areas any more. I'll try getting the 1.2b3 code but figuring out usage from the debugger is kind of time consuming. This is what I tried in my subclass of the service locator: public javax.xml.rpc.Call createCall() throws ServiceException { Call result = (org.apache.axis.client.Call) super.createCall(); QName name = new javax.xml.namespace.QName("http://yaddayadda.com/schemas/pvapi/PVTypes.xsd";, "commitment-type"); TypeMappingRegistry registry = getTypeMappingRegistry(); TypeMapping mapping = registry.createTypeMapping(); SerializerFactory ser = BaseSerializerFactory.createFactory( org.apache.axis.encoding.ser.BeanSerializerFactory.class, com.yaddayadda.api.client.types.CommitmentTypeExtended.class, name); DeserializerFactory deser = BaseDeserializerFactory.createFactory( org.apache.axis.encoding.ser.BeanDeserializerFactory.class, com.yaddayadda.api.client.types.CommitmentTypeExtended.class, name); mapping.register( com.yaddayadda.api.client.types.CommitmentTypeExtended.class, name, ser, deser); return result; } I'm aware I probably don't want to register this on every call :-) Thanks for any help one might be able to provide, Peter
type mapping registry
I'd like to create a facade on top of an axis-generated web service proxy that does some type substitutions with derived classes representing XML schema elements; no new content but more convenience accessors, particularly to help with and pointers and backpointers. Our web service is evolving so I don't want to precompile a library with hardcoded mappings. Can someone suggest a way to do this? I've tried accessing the type library from an override of the service createCall method that tries to redefine a type handler, but this doesn't seem to be having an effect. I've been trying to run through with the debugger butI'm having trouble building the current library, and the head revision doesn't match in these areas any more. I'll try getting the 1.2b3 code but figuring out usage from the debugger is kind of time consuming. This is what I tried in my subclass of the service locator: public javax.xml.rpc.Call createCall() throws ServiceException { Call result = (org.apache.axis.client.Call) super.createCall(); QName name = new javax.xml.namespace.QName("http://yaddayadda.com/schemas/pvapi/PVTypes.xsd";, "commitment-type"); TypeMappingRegistry registry = getTypeMappingRegistry(); TypeMapping mapping = registry.createTypeMapping(); SerializerFactory ser = BaseSerializerFactory.createFactory( org.apache.axis.encoding.ser.BeanSerializerFactory.class, com.yaddayadda.api.client.types.CommitmentTypeExtended.class, name); DeserializerFactory deser = BaseDeserializerFactory.createFactory( org.apache.axis.encoding.ser.BeanDeserializerFactory.class, com.yaddayadda.api.client.types.CommitmentTypeExtended.class, name); mapping.register( com.yaddayadda.api.client.types.CommitmentTypeExtended.class, name, ser, deser); return result; } I'm aware I probably don't want to register this on every call :-) Thanks for any help one might be able to provide, Peter
string arrays as input parameters in in doc/literal services
Having now worked out how to send and receive arrays of user-defined data types, I am stumped over how to send an array of strings as a service call input parameter in a doc-literal/wrapped service. My wsdl defines the array as following: (Here the element name is actually the method name.) The method signature is: public DictEntry[] returnMultiple(String[] hw) throws JAXRPCException; In my client, I've tried: call.addParameter("hw", org.apache.axis.encoding.XMLType.SOAP_ARRAY, javax.xml.rpc.ParameterMode.IN); I haven't used reference to serializers or deserializers in the Client - do strings need them? And if they do (as arrays), arrays aren't beans, so I'm not sure what to do. Do I need to define an ArrayType in my wsdl? And create an ArrayType bean? My WSDD has the lines: http://dct/types"; returnType="rtns:ArrayOf_ns0_DictEntry" xmlns:rtns="http://dict/types"; > http://www.w3.org/2001/XMLSchema"/> plus I've tried adding (is this read when there is a ref to a wsdl file?): http://dct"; qname="ns:ArrayOf_xsd_string" type="java:string[]" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> I get a mile of exceptions but basically the message is: Unable to deploy typemapping: {http://dct}ArrayOf_xsd_string java.lang.ClassNotFoundException: [Lstring; and: java.lang.ArrayStoreException: [Ljava.lang.String;.. (I don't know what an Lstring is - nor Ljava!) Help please someone. Thanks. Madeleine
Java2wsdl and interfaces
Greetings. I am trying to expose my Java interface as a web service. The interface itself defines a method, which returns IState interfaces. So, when I use axis-java2wsdl ant task I get the following warning: "The class IState does not contain a default constructor, which is a requirement for a bean class. The class cannot be converted into an xml schema type. An xml schema anyType will be used to define this class in the wsdl file." This causes axis-java2wsdl to avoid generating xsd type mappings for the IState interface. So, when later I use axis-wsdl2java, I get the following error: "IState is referenced but not defined." I remember other people having the same problem, but I can't find a solution on the mailing list. So, the question is how I tell axis-java2wsdl that a concrete implementation class State should be used when generating type mappings for interface IState? Regards. Oleg
Re: attachments question
Ryan, I actually just implemented the code snippet that you supplied and it worked. I really appreciate the help that both you and Jai provided me with. brian On Apr 5, 2005 2:01 PM, Brian Rook <[EMAIL PROTECTED]> wrote: > I was thinking about trying this, but didn't know where to find out > what the DataSource actually needed. Do you have links to documents > where I could learn more about the DataSource interface? > > Thanks, > > brian > > On Apr 5, 2005 1:09 PM, Ryan Bell <[EMAIL PROTECTED]> wrote: > > Brian, one option you can try is to write your own DataSource that works > > with byte arrays and pass that into your DataHandler like so using the > > BufferedDataSource class below: > > > > new DataHandler(new BufferedDataSource(data, name, mimetype)); > > > > public class BufferedDataSource implements DataSource { > > > > private byte[] _data; > > private String _name; > > private String _type; > > > > public BufferedDataSource(byte[] data, String name, String type) { > > > > _data = data; > > _name = name; > > _type = type; > > } > > > > public String getContentType() { > > > > return _type; > > > > } > > > > public InputStream getInputStream() throws IOException { > > > > return new ByteArrayInputStream(_data); > > > > } > > > > public String getName() { > > > > return _name; > > > > } > > > > public OutputStream getOutputStream() throws IOException { > > > > OutputStream out = new ByteArrayOutputStream(); > > out.write(_data); > > return out; > > > > } > > } > > > > On Tue, 2005-04-05 at 12:02 -0600, Brian Rook wrote: > > > Okay, I wrote a temp file to the file system and it had the data I > > > expected. Then I used the DataHandler with the FileDataSource > > > constructor and everything worked fine. > > > > > > I would really rather not write to the file system, especially if I > > > have multiple users accessing the system at the same time. I looked > > > at the DataHandler in the debugger, but it didn't have any mime type > > > information. > > > > > > Also, when I looked at the soap response this time, it had a bunch of > > > binary data in the binary data field that wasn't there before. The > > > mime type for the binary data was: > > > Content-Type: application/octet-stream > > > Content-Transfer-Encoding: binary > > > > > > Is there a way to create the DataHandler the way I originally intended > > > (w/o FileDataSource)? > > > > > > brian > > > > > > On Apr 5, 2005 11:39 AM, THOMAS, JAI [AG-Contractor/1000] > > > <[EMAIL PROTECTED]> wrote: > > > > Well, looks like client doesn't know how to handle > > > > application/octet-stream. > > > > You may want to try couple of things > > > > - Try with application/zip > > > > - Save to a file and use FileDataSource just for testing. If can fail > > > > if you have a serializer/config issue. > > > > Assume you are using Axis on both ends. > > > > > > > > Jai > > > > > > > > -Original Message- > > > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, April 05, 2005 12:31 PM > > > > To: axis-user@ws.apache.org > > > > Subject: Re: attachments question > > > > > > > > damn, forgot to include the console too...here's the exception I get > > > > on the console. This says that the exception is on the server side. > > > > > > > > 2005-04-05 11:28:16,203 ERROR [MimeUtils] java.io.IOException: > > > > javax.activation.UnsupportedDataTypeException: no object DCH for MIME > > > > type application/octet-stream > > > > at > > > > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) > > > > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > > > > at > > > > javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > > > > at > > > > javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668) > > > > at > > > > javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:232) > > > > at > > > > com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67) > > > > at > > > > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) > > > > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > > > > at > > > > javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > > > > at > > > > javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600) > > > > at > > > > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202) > > > > at > > > > org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461) > > > > at org.apache.axis.Message.writeTo(Message.java:529) > > > > at > > > > org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:822) > > > > > > > > On Apr 5, 2005 11:24 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > > > > > BTW, this i
Re: attachments question
I was thinking about trying this, but didn't know where to find out what the DataSource actually needed. Do you have links to documents where I could learn more about the DataSource interface? Thanks, brian On Apr 5, 2005 1:09 PM, Ryan Bell <[EMAIL PROTECTED]> wrote: > Brian, one option you can try is to write your own DataSource that works > with byte arrays and pass that into your DataHandler like so using the > BufferedDataSource class below: > > new DataHandler(new BufferedDataSource(data, name, mimetype)); > > public class BufferedDataSource implements DataSource { > > private byte[] _data; > private String _name; > private String _type; > > public BufferedDataSource(byte[] data, String name, String type) { > > _data = data; > _name = name; > _type = type; > } > > public String getContentType() { > > return _type; > > } > > public InputStream getInputStream() throws IOException { > > return new ByteArrayInputStream(_data); > > } > > public String getName() { > > return _name; > > } > > public OutputStream getOutputStream() throws IOException { > > OutputStream out = new ByteArrayOutputStream(); > out.write(_data); > return out; > > } > } > > On Tue, 2005-04-05 at 12:02 -0600, Brian Rook wrote: > > Okay, I wrote a temp file to the file system and it had the data I > > expected. Then I used the DataHandler with the FileDataSource > > constructor and everything worked fine. > > > > I would really rather not write to the file system, especially if I > > have multiple users accessing the system at the same time. I looked > > at the DataHandler in the debugger, but it didn't have any mime type > > information. > > > > Also, when I looked at the soap response this time, it had a bunch of > > binary data in the binary data field that wasn't there before. The > > mime type for the binary data was: > > Content-Type: application/octet-stream > > Content-Transfer-Encoding: binary > > > > Is there a way to create the DataHandler the way I originally intended > > (w/o FileDataSource)? > > > > brian > > > > On Apr 5, 2005 11:39 AM, THOMAS, JAI [AG-Contractor/1000] > > <[EMAIL PROTECTED]> wrote: > > > Well, looks like client doesn't know how to handle > > > application/octet-stream. > > > You may want to try couple of things > > > - Try with application/zip > > > - Save to a file and use FileDataSource just for testing. If can fail if > > > you have a serializer/config issue. > > > Assume you are using Axis on both ends. > > > > > > Jai > > > > > > -Original Message- > > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, April 05, 2005 12:31 PM > > > To: axis-user@ws.apache.org > > > Subject: Re: attachments question > > > > > > damn, forgot to include the console too...here's the exception I get > > > on the console. This says that the exception is on the server side. > > > > > > 2005-04-05 11:28:16,203 ERROR [MimeUtils] java.io.IOException: > > > javax.activation.UnsupportedDataTypeException: no object DCH for MIME > > > type application/octet-stream > > > at > > > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) > > > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > > > at > > > javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > > > at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668) > > > at > > > javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:232) > > > at > > > com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67) > > > at > > > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) > > > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > > > at > > > javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > > > at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600) > > > at > > > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202) > > > at > > > org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461) > > > at org.apache.axis.Message.writeTo(Message.java:529) > > > at > > > org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:822) > > > > > > On Apr 5, 2005 11:24 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > > > > BTW, this is what came through on tcpmon. It looks like the binary > > > > data was sent, and the exception is on the client side. > > > > > > > > HTTP/1.1 200 OK > > > > > > > > X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build: > > > > CVSTag=JBoss_3_2_6 date=200410140106) > > > > > > > > Content-Type: multipart/related; type="text/xml"; > > > > start="<240740715F1EED4240F4AD018D2835D6>"; > > > > boundary="=_Part_3_11509108.1112721764250"Date: Tue, 05 Apr >
What are these QName_Helper and String_Helper classes?
Hi, All, In an experiment I named namespaces using format like x_1_00 and service endpoint using a name like y_1_00.wsdl to support multiple web services (more than one port). I generated the server side classes fine with wsdl2java tool and the compilation was successful. But when I tried to deploy the service with AdminClient it failed with an InvocationTargetException and NoClassDefFoundError. I debugged it and found that it was looking for the following classes and it failed to found any: javax.xml.namespace.QName_Helper java.lang.String_Helper These two classes were not required before my change. Does anyone know why these two classes are required now and how to generate them? Thanks, Scott P.S. the exceptions Exception:: java.lang.reflect.InvocationTargetException AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTargetException java.lang.NoClassDefFoundError: org/apache/axis/encoding/Deserializer at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:190) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171) at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112) at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificTy pe(WSDDTypeMapping.java:221) at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSer vice.java:553) at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java: 271) at org.apache.axis.deployment.wsdd.WSDDService.(WSDDService. java:247) at org.apache.axis.deployment.wsdd.WSDDDeployment. (WSDDDeplo yment.java:243) at org.apache.axis.deployment.wsdd.WSDDDocument. (WSDDDocumen
I see the following exception in the console output while invokin g the service (although everything works fine and I do get desired result s)
Title: I see the following exception in the console output while invoking the service (although everything works fine and I do get desired results) urrent message form to: FORM_SOAPENVELOPE (currentMessage is now org.apache.axis .message.SOAPEnvelope) 831 05 Apr 2005 11:47:58,571 [main] DEBUG org.apache.axis.SOAPPart - Exit: SOA PPart ctor() 831 05 Apr 2005 11:47:58,571 [main] DEBUG org.apache.axis.i18n.ProjectResourceB undle - org.apache.axis.i18n.resource::handleGetObject(addBody00) 831 05 Apr 2005 11:47:58,571 [main] DEBUG org.apache.axis.message.SOAPBody - A dding body element to message... 831 05 Apr 2005 11:47:58,571 [main] DEBUG org.apache.axis.client.Call - Enter: Call::invoke() 841 05 Apr 2005 11:47:58,581 [main] DEBUG org.apache.axis.MessageContext - Mes sageContext: setTargetService(MediaIngestManager) 841 05 Apr 2005 11:47:58,581 [main] DEBUG org.apache.axis.i18n.ProjectResourceB undle - org.apache.axis.i18n.resource::handleGetObject(noService10) 841 05 Apr 2005 11:47:58,581 [main] DEBUG org.apache.axis.ConfigurationExceptio n - Exception: org.apache.axis.ConfigurationException: No service named MediaIngestManager is a vailable org.apache.axis.ConfigurationException: No service named MediaIngestManager is a vailable at org.apache.axis.configuration.FileProvider.getService(FileProvider.ja va:228) at org.apache.axis.AxisEngine.getService(AxisEngine.java:290) at org.apache.axis.MessageContext.setTargetService(MessageContext.java:7 55) at org.apache.axis.client.Call.invoke(Call.java:2625) at org.apache.axis.client.Call.invoke(Call.java:2378) at org.apache.axis.client.Call.invoke(Call.java:2301) at org.apache.axis.client.Call.invoke(Call.java:1758) at com.harris.hrs.api1.services.HrsMediaIngestManagerStub.createContent( HrsMediaIngestManagerStub.java:165) at Main.main(Main.java:58) at org.apache.axis.configuration.FileProvider.getService(FileProvider.ja va:228) at org.apache.axis.AxisEngine.getService(AxisEngine.java:290) at org.apache.axis.MessageContext.setTargetService(MessageContext.java:7 55) at org.apache.axis.client.Call.invoke(Call.java:2625) at org.apache.axis.client.Call.invoke(Call.java:2378) at org.apache.axis.client.Call.invoke(Call.java:2301) at org.apache.axis.client.Call.invoke(Call.java:1758) at com.harris.hrs.api1.services.HrsMediaIngestManagerStub.createContent( HrsMediaIngestManagerStub.java:165) at Main.main(Main.java:58) 851 05 Apr 2005 11:47:58,591 [main] DEBUG org.apache.axis.MessageContext - Mes sageContext: setServiceHandler(null) 851 05 Apr 2005 11:47:58,591 [main] DEBUG org.apache.axis.i18n.ProjectResourceB undle - org.apache.axis.i18n.resource::handleGetObject(targetService) 851 05 Apr 2005 11:47:58,591 [main] DEBUG org.apache.axis.client.Call - Target service: MediaIngestManager 851 05 Apr 2005 11:47:58,591 [main] DEBUG org.apache.axis.MessageContext - Mes sageContext: setTargetService() 851 05 Apr 2005 11:47:58,591 [main] DEBUG org.apache.axis.i18n.ProjectResourceB undle - org.apache.axis.i18n.resource::handleGetObject(noService10) 851 05 Apr 2005 11:47:58,591 [main] DEBUG org.apache.axis.ConfigurationExceptio n - Exception: org.apache.axis.ConfigurationException: No service named is available org.apache.axis.ConfigurationException: No service named is available at org.apache.axis.configuration.FileProvider.getService(FileProvider.ja va:228) at org.apache.axis.AxisEngine.getService(AxisEngine.java:290) at org.apache.axis.MessageContext.setTargetService(MessageContext.java:7 55) at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl( HTTPTransport.java:89) at org.apache.axis.client.Transport.setupMessageContext(Transport.java:4 6) at org.apache.axis.client.Call.invoke(Call.java:2673) at org.apache.axis.client.Call.invoke(Call.java:2378) at org.apache.axis.client.Call.invoke(Call.java:2301) at org.apache.axis.client.Call.invoke(Call.java:1758) at com.harris.hrs.api1.services.HrsMediaIngestManagerStub.createContent( HrsMediaIngestManagerStub.java:165) at Main.main(Main.java:58) at org.apache.axis.configuration.FileProvider.getService(FileProvider.ja va:228) at org.apache.axis.AxisEngine.getService(AxisEngine.java:290) at org.apache.axis.MessageContext.setTargetService(MessageContext.java:7 55) at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl( HTTPTransport.java:89) at org.apache.axis.client.Transport.setupMessageContext(Transport.java:4 6) at org.apache.axis.client.Call.invoke(Call.java:2673) at org.apache.axis.client.Call.invoke(Call.java:2378) at org.apache.axis.client.Call.invoke(Call.java:2301) at org.apache.axis.client.Call.invoke(Call.java:1758) at com.harris.hrs.api1.services.HrsM
Re: attachments question
Brian, one option you can try is to write your own DataSource that works with byte arrays and pass that into your DataHandler like so using the BufferedDataSource class below: new DataHandler(new BufferedDataSource(data, name, mimetype)); public class BufferedDataSource implements DataSource { private byte[] _data; private String _name; private String _type; public BufferedDataSource(byte[] data, String name, String type) { _data = data; _name = name; _type = type; } public String getContentType() { return _type; } public InputStream getInputStream() throws IOException { return new ByteArrayInputStream(_data); } public String getName() { return _name; } public OutputStream getOutputStream() throws IOException { OutputStream out = new ByteArrayOutputStream(); out.write(_data); return out; } } On Tue, 2005-04-05 at 12:02 -0600, Brian Rook wrote: > Okay, I wrote a temp file to the file system and it had the data I > expected. Then I used the DataHandler with the FileDataSource > constructor and everything worked fine. > > I would really rather not write to the file system, especially if I > have multiple users accessing the system at the same time. I looked > at the DataHandler in the debugger, but it didn't have any mime type > information. > > Also, when I looked at the soap response this time, it had a bunch of > binary data in the binary data field that wasn't there before. The > mime type for the binary data was: > Content-Type: application/octet-stream > Content-Transfer-Encoding: binary > > Is there a way to create the DataHandler the way I originally intended > (w/o FileDataSource)? > > brian > > On Apr 5, 2005 11:39 AM, THOMAS, JAI [AG-Contractor/1000] > <[EMAIL PROTECTED]> wrote: > > Well, looks like client doesn't know how to handle application/octet-stream. > > You may want to try couple of things > > - Try with application/zip > > - Save to a file and use FileDataSource just for testing. If can fail if > > you have a serializer/config issue. > > Assume you are using Axis on both ends. > > > > Jai > > > > -Original Message- > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 05, 2005 12:31 PM > > To: axis-user@ws.apache.org > > Subject: Re: attachments question > > > > damn, forgot to include the console too...here's the exception I get > > on the console. This says that the exception is on the server side. > > > > 2005-04-05 11:28:16,203 ERROR [MimeUtils] java.io.IOException: > > javax.activation.UnsupportedDataTypeException: no object DCH for MIME > > type application/octet-stream > > at > > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) > > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > > at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > > at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668) > > at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:232) > > at > > com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67) > > at > > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) > > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > > at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > > at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600) > > at > > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202) > > at > > org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461) > > at org.apache.axis.Message.writeTo(Message.java:529) > > at > > org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:822) > > > > On Apr 5, 2005 11:24 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > > > BTW, this is what came through on tcpmon. It looks like the binary > > > data was sent, and the exception is on the client side. > > > > > > HTTP/1.1 200 OK > > > > > > X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build: > > > CVSTag=JBoss_3_2_6 date=200410140106) > > > > > > Content-Type: multipart/related; type="text/xml"; > > > start="<240740715F1EED4240F4AD018D2835D6>"; > > > boundary="=_Part_3_11509108.1112721764250"Date: Tue, 05 Apr > > > 2005 > > > 17:22:44 GMTServer: Apache-Coyote/1.1Connection: > > > close--=_Part_3_11509108.1112721764250Content-Type: text/xml; > > > charset=UTF-8Content-Transfer-Encoding: binaryContent-Id: > > ><240740715F1EED4240F4AD018D2835D6> > > >> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > > > > > > > > > xmlns:ns1="http://websvc.eiwo.child
Doubts regarding cyclic loops and inheritance
Title: Message Hi, Sending this again to all of you. I have class A that contains an array of type B elements. class B keeps a reference to A. This will definitely create a loop when Axis will try to serialize it because while serializing B it'll try to serialize A and then B and so on. Dino replied to my earlier mail and suggested that reference can be kept through an id of A as well. If I do that then it becomes pretty easy and there is no problem of looping but the downside is that sometimes consumer might have to give a different call to obtain the instance of class A using the id because some elements of the array of type B might point to another instance of class A. I hope I am not confusing you. See below: Instance1 of A ...field1 ...field2 ...Array of Instances of B Elements of Array of Instances of B are: --Instance1 of B (points to Instance1 of A) --Instance2 of B (points to some other instance of A) Q1. I am wondering what is the best practice here: --sacrifice the ease of loading the full object graph in favor of simple wsdl and simple serialization & de-serialization as that is the bottleneck in terms of performance. --or do something else to workaround this issue like create another complex element for A again which doesn't have further levels and use that for reference. Q2. I have a class that contains another class as a field for which there can be multiple implementations. class ContentContainer contains multiple ContentElements and there are multiple implementations of the latter (see below). How should I write my complex element in this case. As Anne also suggests that we should not treat web services as distributed object system so I don't want to use inheritance. One way can be to create a complex element that contains fields from all possible implementations of ContentElement and use that as a member of ContentContainer. Based on the fields set by the client I should create a specific instance at the implementation side. Any suggestion on this? ContentContainer-contains one or more >ContentElement | | -- | | Element Type1 Element Type 2 Thanks Dheeraj Soti http://services.hrs.harris.com/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://services.hrs.harris.com/" xmlns:intf="http://services.hrs.harris.com/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://services.hrs.harris.com/" xmlns:content="http://content.services.hrs.harris.com/" xmlns:media="http://media.services.hrs.harris.com/" xmlns:device="http://device.services.hrs.harris.com/" xmlns:storage="http://storage.services.hrs.harris.com/" xmlns:timecode="http://timecode.services.hrs.harris.com/" xmlns:config="http://config.services.hrs.harris.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> http://timecode.services.hrs.harris.com/" xmlns="http://www.w3.org/2001/XMLSchema"> http://media.services.hrs.harris.com/" xmlns="http://www.w3.org/2001/XMLSchema"> http://content.services.hrs.harris.com/" xmlns="http://www.w3.org/2001/XMLSchema"> http://device.
Re: .NET cred
So how can one configure the Stub so that it uses CommonsHTTPSender and how does one get to the transport instance from the stub so that custom headers can be set? Also, would CommonsHTTPSender be able to participate in the HTTP digest auth mechanism? Thank you. Tim Would this also work for digest authentication for example? Also, how do you get to use CommonsHTTPSender when you need to make a call given an instance of the Stub? Thanks. Tim THOMAS, JAI [AG-Contractor/1000] wrote: Have a look at org.apache.axis.transport.http.CommonsHTTPSender. ComonsHTTPSender::invoke() appends user credentials and other relevant info to http header before sending request. Hope it helps Jai -Original Message- From: John Windberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 12:57 PM To: axis-user@ws.apache.org Subject: RE: .NET cred CommonsHTTPSender() does not seem to exist anywhere in the axis.jar file. I'll admit to being clueless, but you have to start somewhere. To quote someone great, "Huh?" thanks I'm sure somewhere out there is a howto or a faq or something on how one uses java/axis to talk to a .NET server that has not been changed in anyway from it's default settings. Anyone?? Thanks -J
Re: attachments question
Okay, I wrote a temp file to the file system and it had the data I expected. Then I used the DataHandler with the FileDataSource constructor and everything worked fine. I would really rather not write to the file system, especially if I have multiple users accessing the system at the same time. I looked at the DataHandler in the debugger, but it didn't have any mime type information. Also, when I looked at the soap response this time, it had a bunch of binary data in the binary data field that wasn't there before. The mime type for the binary data was: Content-Type: application/octet-stream Content-Transfer-Encoding: binary Is there a way to create the DataHandler the way I originally intended (w/o FileDataSource)? brian On Apr 5, 2005 11:39 AM, THOMAS, JAI [AG-Contractor/1000] <[EMAIL PROTECTED]> wrote: > Well, looks like client doesn't know how to handle application/octet-stream. > You may want to try couple of things > - Try with application/zip > - Save to a file and use FileDataSource just for testing. If can fail if you > have a serializer/config issue. > Assume you are using Axis on both ends. > > Jai > > -Original Message- > From: Brian Rook [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 12:31 PM > To: axis-user@ws.apache.org > Subject: Re: attachments question > > damn, forgot to include the console too...here's the exception I get > on the console. This says that the exception is on the server side. > > 2005-04-05 11:28:16,203 ERROR [MimeUtils] java.io.IOException: > javax.activation.UnsupportedDataTypeException: no object DCH for MIME > type application/octet-stream > at > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668) > at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:232) > at > com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67) > at > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) > at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600) > at > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202) > at > org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461) > at org.apache.axis.Message.writeTo(Message.java:529) > at > org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:822) > > On Apr 5, 2005 11:24 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > > BTW, this is what came through on tcpmon. It looks like the binary > > data was sent, and the exception is on the client side. > > > > HTTP/1.1 200 OK > > > > X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build: > > CVSTag=JBoss_3_2_6 date=200410140106) > > > > Content-Type: multipart/related; type="text/xml"; > > start="<240740715F1EED4240F4AD018D2835D6>"; > > boundary="=_Part_3_11509108.1112721764250"Date: Tue, 05 Apr 2005 > > 17:22:44 GMTServer: Apache-Coyote/1.1Connection: > > close--=_Part_3_11509108.1112721764250Content-Type: text/xml; > > charset=UTF-8Content-Transfer-Encoding: binaryContent-Id: > ><240740715F1EED4240F4AD018D2835D6> > >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > > > > > xmlns:ns1="http://websvc.eiwo.childsupport.colorado.gov";>-200504051758437 > > > href="cid:CFF956D504D89245943967B50CB04C4C"; > > xmlns:ns2="http://websvc.eiwo.childsupport.colorado.gov"/> > > > > > > > > > > --=_Part_3_11509108.1112721764250 > > > > Content-Type: application/octet-stream > > > > Content-Transfer-Encoding: binary > > > > Content-Id: > > > > > > > > On Apr 5, 2005 11:19 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > > > okay, tried that. I get a different message now: > > > > > > java.lang.RuntimeException: javax.mail.MessagingException: Error in > > > input stream; > > > nested exception is: > > > java.io.IOException: End of stream encountered before final > > > boundary marker. > > > > > > This method works when I call it from a servlet, so I'm pretty sure > > > that the byte[] contains all the data it should have. > > > > > > On Apr 5, 2005 10:52 AM, THOMAS, JAI [AG-Contractor/1000] > > > <[EMAIL PROTECTED]> wrote: > > > > Try mimetype='application/octet-stream'. > > > > > > > > Jai > > > > > > > > -Original Message- > > > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, April 05, 2005 11:38 A
RE: attachments question
Well, looks like client doesn't know how to handle application/octet-stream. You may want to try couple of things - Try with application/zip - Save to a file and use FileDataSource just for testing. If can fail if you have a serializer/config issue. Assume you are using Axis on both ends. Jai -Original Message- From: Brian Rook [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 12:31 PM To: axis-user@ws.apache.org Subject: Re: attachments question damn, forgot to include the console too...here's the exception I get on the console. This says that the exception is on the server side. 2005-04-05 11:28:16,203 ERROR [MimeUtils] java.io.IOException: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668) at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:232) at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600) at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202) at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461) at org.apache.axis.Message.writeTo(Message.java:529) at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:822) On Apr 5, 2005 11:24 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > BTW, this is what came through on tcpmon. It looks like the binary > data was sent, and the exception is on the client side. > > HTTP/1.1 200 OK > > X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build: > CVSTag=JBoss_3_2_6 date=200410140106) > > Content-Type: multipart/related; type="text/xml"; > start="<240740715F1EED4240F4AD018D2835D6>"; > boundary="=_Part_3_11509108.1112721764250"Date: Tue, 05 Apr 2005 > 17:22:44 GMTServer: Apache-Coyote/1.1Connection: > close--=_Part_3_11509108.1112721764250Content-Type: text/xml; > charset=UTF-8Content-Transfer-Encoding: binaryContent-Id: ><240740715F1EED4240F4AD018D2835D6> >xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xmlns:ns1="http://websvc.eiwo.childsupport.colorado.gov";>-200504051758437 > href="cid:CFF956D504D89245943967B50CB04C4C"; > xmlns:ns2="http://websvc.eiwo.childsupport.colorado.gov"/> > > > > > --=_Part_3_11509108.1112721764250 > > Content-Type: application/octet-stream > > Content-Transfer-Encoding: binary > > Content-Id: > > > > On Apr 5, 2005 11:19 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > > okay, tried that. I get a different message now: > > > > java.lang.RuntimeException: javax.mail.MessagingException: Error in > > input stream; > > nested exception is: > > java.io.IOException: End of stream encountered before final > > boundary marker. > > > > This method works when I call it from a servlet, so I'm pretty sure > > that the byte[] contains all the data it should have. > > > > On Apr 5, 2005 10:52 AM, THOMAS, JAI [AG-Contractor/1000] > > <[EMAIL PROTECTED]> wrote: > > > Try mimetype='application/octet-stream'. > > > > > > Jai > > > > > > -Original Message- > > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, April 05, 2005 11:38 AM > > > To: axis-user@ws.apache.org > > > Subject: Re: attachments question > > > > > > I'm actually creating the zip file in memory and passing a reference > > > to the byte[] created. My service is based on an ejb method that > > > looks like this: > > > > > > public byte[] getZipOutput(WageWithholdingTO[] wwArray) > > > > > > I would prefer not to write the file to the file system and then read > > > it from there just to create the datahandler. Also I need to provide > > > both the string (confirmationCode) and the datahandler in the soap > > > response. > > > > > > How do you mean 'make sure there is a typemapping registered for > > > datahandler'? When you create a datahandler you have to specify a > > > typemapping ("multipart/*"), right? Is there something else I'm > > > missing? > > > > > > On Apr 5, 2005 10:24 AM, THOMAS, JAI [AG-Contractor/1000] > > > <[EMAIL PROTECTED]> wrote: > > > > If you are attaching an already created zip file, create data handler > > > > from FileDataSource. > > > >
Re: attachments question
damn, forgot to include the console too...here's the exception I get on the console. This says that the exception is on the server side. 2005-04-05 11:28:16,203 ERROR [MimeUtils] java.io.IOException: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668) at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:232) at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600) at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202) at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461) at org.apache.axis.Message.writeTo(Message.java:529) at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:822) On Apr 5, 2005 11:24 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > BTW, this is what came through on tcpmon. It looks like the binary > data was sent, and the exception is on the client side. > > HTTP/1.1 200 OK > > X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build: > CVSTag=JBoss_3_2_6 date=200410140106) > > Content-Type: multipart/related; type="text/xml"; > start="<240740715F1EED4240F4AD018D2835D6>"; > boundary="=_Part_3_11509108.1112721764250"Date: Tue, 05 Apr 2005 > 17:22:44 GMTServer: Apache-Coyote/1.1Connection: > close--=_Part_3_11509108.1112721764250Content-Type: text/xml; > charset=UTF-8Content-Transfer-Encoding: binaryContent-Id: ><240740715F1EED4240F4AD018D2835D6> >xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > xmlns:ns1="http://websvc.eiwo.childsupport.colorado.gov";>-200504051758437 > href="cid:CFF956D504D89245943967B50CB04C4C"; > xmlns:ns2="http://websvc.eiwo.childsupport.colorado.gov"/> > > > > > --=_Part_3_11509108.1112721764250 > > Content-Type: application/octet-stream > > Content-Transfer-Encoding: binary > > Content-Id: > > > > On Apr 5, 2005 11:19 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > > okay, tried that. I get a different message now: > > > > java.lang.RuntimeException: javax.mail.MessagingException: Error in > > input stream; > > nested exception is: > > java.io.IOException: End of stream encountered before final > > boundary marker. > > > > This method works when I call it from a servlet, so I'm pretty sure > > that the byte[] contains all the data it should have. > > > > On Apr 5, 2005 10:52 AM, THOMAS, JAI [AG-Contractor/1000] > > <[EMAIL PROTECTED]> wrote: > > > Try mimetype='application/octet-stream'. > > > > > > Jai > > > > > > -Original Message- > > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, April 05, 2005 11:38 AM > > > To: axis-user@ws.apache.org > > > Subject: Re: attachments question > > > > > > I'm actually creating the zip file in memory and passing a reference > > > to the byte[] created. My service is based on an ejb method that > > > looks like this: > > > > > > public byte[] getZipOutput(WageWithholdingTO[] wwArray) > > > > > > I would prefer not to write the file to the file system and then read > > > it from there just to create the datahandler. Also I need to provide > > > both the string (confirmationCode) and the datahandler in the soap > > > response. > > > > > > How do you mean 'make sure there is a typemapping registered for > > > datahandler'? When you create a datahandler you have to specify a > > > typemapping ("multipart/*"), right? Is there something else I'm > > > missing? > > > > > > On Apr 5, 2005 10:24 AM, THOMAS, JAI [AG-Contractor/1000] > > > <[EMAIL PROTECTED]> wrote: > > > > If you are attaching an already created zip file, create data handler > > > > from FileDataSource. > > > > That way, you let datahandler to set the appropriate mime type. > > > > dhSource = new DataHandler(new FileDataSource(docFile)); > > > > > > > > Also make sure there is typemapping registered for DataHandler. > > > > > > > > Jai > > > > > > > > > > > > -Original Message- > > > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, April 05, 2005 11:12 AM > > > > To: axis-user@ws.apache.org > > > > Subject: attachments question > > > > > > > >
Re: attachments question
BTW, this is what came through on tcpmon. It looks like the binary data was sent, and the exception is on the client side. HTTP/1.1 200 OK X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build: CVSTag=JBoss_3_2_6 date=200410140106) Content-Type: multipart/related; type="text/xml"; start="<240740715F1EED4240F4AD018D2835D6>"; boundary="=_Part_3_11509108.1112721764250"Date: Tue, 05 Apr 2005 17:22:44 GMTServer: Apache-Coyote/1.1Connection: close--=_Part_3_11509108.1112721764250Content-Type: text/xml; charset=UTF-8Content-Transfer-Encoding: binaryContent-Id: <240740715F1EED4240F4AD018D2835D6> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://websvc.eiwo.childsupport.colorado.gov";>-200504051758437 cid:CFF956D504D89245943967B50CB04C4C"; xmlns:ns2="http://websvc.eiwo.childsupport.colorado.gov"/> --=_Part_3_11509108.1112721764250 Content-Type: application/octet-stream Content-Transfer-Encoding: binary Content-Id: On Apr 5, 2005 11:19 AM, Brian Rook <[EMAIL PROTECTED]> wrote: > okay, tried that. I get a different message now: > > java.lang.RuntimeException: javax.mail.MessagingException: Error in > input stream; > nested exception is: > java.io.IOException: End of stream encountered before final boundary > marker. > > This method works when I call it from a servlet, so I'm pretty sure > that the byte[] contains all the data it should have. > > On Apr 5, 2005 10:52 AM, THOMAS, JAI [AG-Contractor/1000] > <[EMAIL PROTECTED]> wrote: > > Try mimetype='application/octet-stream'. > > > > Jai > > > > -Original Message- > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 05, 2005 11:38 AM > > To: axis-user@ws.apache.org > > Subject: Re: attachments question > > > > I'm actually creating the zip file in memory and passing a reference > > to the byte[] created. My service is based on an ejb method that > > looks like this: > > > > public byte[] getZipOutput(WageWithholdingTO[] wwArray) > > > > I would prefer not to write the file to the file system and then read > > it from there just to create the datahandler. Also I need to provide > > both the string (confirmationCode) and the datahandler in the soap > > response. > > > > How do you mean 'make sure there is a typemapping registered for > > datahandler'? When you create a datahandler you have to specify a > > typemapping ("multipart/*"), right? Is there something else I'm > > missing? > > > > On Apr 5, 2005 10:24 AM, THOMAS, JAI [AG-Contractor/1000] > > <[EMAIL PROTECTED]> wrote: > > > If you are attaching an already created zip file, create data handler > > > from FileDataSource. > > > That way, you let datahandler to set the appropriate mime type. > > > dhSource = new DataHandler(new FileDataSource(docFile)); > > > > > > Also make sure there is typemapping registered for DataHandler. > > > > > > Jai > > > > > > > > > -Original Message- > > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, April 05, 2005 11:12 AM > > > To: axis-user@ws.apache.org > > > Subject: attachments question > > > > > > I'm trying to send back both a string and a zip file from a webservice > > > built using axis1_2RC1. here's the entry in the wsdl: > > > > > > code: > > > > > > http://www.w3.org/2001/XMLSchema"; > > > targetNamespace="http://websvc.eiwo.childsupport.colorado.gov"; > > > elementFormDefault="qualified"> > > >http://xml.apache.org/xml-soap"/> > > > > > > > > > > > > > > type="apachesoap:DataHandler"/> > > > > > > > > > > > > > > > I can build and deploy and call the service but it fails with this > > > message: > > > > > > code: > > > > > > AxisFault > > > faultCode: > > > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > > > faultSubcode: > > > faultString: java.lang.ClassCastException > > > faultActor: > > > faultNode: > > > faultDetail: > > > > > > {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException > > > at > > > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > > > at > > > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824) > > > at > > > javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215) > > > at > > > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > > > at > > > javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914) > > > at > > > javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895) > > > at > > > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201) > > > > > > Here's the line that creates the datahandler: > > > > > > DataHandler dh = new DataHandler(zipBytes,"multipart/*"
Re: attachments question
okay, tried that. I get a different message now: java.lang.RuntimeException: javax.mail.MessagingException: Error in input stream; nested exception is: java.io.IOException: End of stream encountered before final boundary marker. This method works when I call it from a servlet, so I'm pretty sure that the byte[] contains all the data it should have. On Apr 5, 2005 10:52 AM, THOMAS, JAI [AG-Contractor/1000] <[EMAIL PROTECTED]> wrote: > Try mimetype='application/octet-stream'. > > Jai > > -Original Message- > From: Brian Rook [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 11:38 AM > To: axis-user@ws.apache.org > Subject: Re: attachments question > > I'm actually creating the zip file in memory and passing a reference > to the byte[] created. My service is based on an ejb method that > looks like this: > > public byte[] getZipOutput(WageWithholdingTO[] wwArray) > > I would prefer not to write the file to the file system and then read > it from there just to create the datahandler. Also I need to provide > both the string (confirmationCode) and the datahandler in the soap > response. > > How do you mean 'make sure there is a typemapping registered for > datahandler'? When you create a datahandler you have to specify a > typemapping ("multipart/*"), right? Is there something else I'm > missing? > > On Apr 5, 2005 10:24 AM, THOMAS, JAI [AG-Contractor/1000] > <[EMAIL PROTECTED]> wrote: > > If you are attaching an already created zip file, create data handler from > > FileDataSource. > > That way, you let datahandler to set the appropriate mime type. > > dhSource = new DataHandler(new FileDataSource(docFile)); > > > > Also make sure there is typemapping registered for DataHandler. > > > > Jai > > > > > > -Original Message- > > From: Brian Rook [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 05, 2005 11:12 AM > > To: axis-user@ws.apache.org > > Subject: attachments question > > > > I'm trying to send back both a string and a zip file from a webservice > > built using axis1_2RC1. here's the entry in the wsdl: > > > > code: > > > > http://www.w3.org/2001/XMLSchema"; > > targetNamespace="http://websvc.eiwo.childsupport.colorado.gov"; > > elementFormDefault="qualified"> > >http://xml.apache.org/xml-soap"/> > > > > > > > > > type="apachesoap:DataHandler"/> > > > > > > > > > > I can build and deploy and call the service but it fails with this message: > > > > code: > > > > AxisFault > > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > > faultSubcode: > > faultString: java.lang.ClassCastException > > faultActor: > > faultNode: > > faultDetail: > > {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException > > at > > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > > at > > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824) > > at > > javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215) > > at > > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > > at > > javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914) > > at > > javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895) > > at > > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201) > > > > Here's the line that creates the datahandler: > > > > DataHandler dh = new DataHandler(zipBytes,"multipart/*"); > > > > zipBytes is a byte[] and I wasn't sure what to use for the mime type > > so I used multipart/*, but that doesn't seem to work. > > > > Are there any suggestions on how to send the attachment correctly? > > > > Thank you > > >
RE: attachments question
Try mimetype='application/octet-stream'. Jai -Original Message- From: Brian Rook [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 11:38 AM To: axis-user@ws.apache.org Subject: Re: attachments question I'm actually creating the zip file in memory and passing a reference to the byte[] created. My service is based on an ejb method that looks like this: public byte[] getZipOutput(WageWithholdingTO[] wwArray) I would prefer not to write the file to the file system and then read it from there just to create the datahandler. Also I need to provide both the string (confirmationCode) and the datahandler in the soap response. How do you mean 'make sure there is a typemapping registered for datahandler'? When you create a datahandler you have to specify a typemapping ("multipart/*"), right? Is there something else I'm missing? On Apr 5, 2005 10:24 AM, THOMAS, JAI [AG-Contractor/1000] <[EMAIL PROTECTED]> wrote: > If you are attaching an already created zip file, create data handler from > FileDataSource. > That way, you let datahandler to set the appropriate mime type. > dhSource = new DataHandler(new FileDataSource(docFile)); > > Also make sure there is typemapping registered for DataHandler. > > Jai > > > -Original Message- > From: Brian Rook [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 11:12 AM > To: axis-user@ws.apache.org > Subject: attachments question > > I'm trying to send back both a string and a zip file from a webservice > built using axis1_2RC1. here's the entry in the wsdl: > > code: > > http://www.w3.org/2001/XMLSchema"; > targetNamespace="http://websvc.eiwo.childsupport.colorado.gov"; > elementFormDefault="qualified"> >http://xml.apache.org/xml-soap"/> > > > > type="apachesoap:DataHandler"/> > > > > > I can build and deploy and call the service but it fails with this message: > > code: > > AxisFault > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: java.lang.ClassCastException > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException > at > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > at > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824) > at > javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215) > at > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > at > javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914) > at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895) > at > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201) > > Here's the line that creates the datahandler: > > DataHandler dh = new DataHandler(zipBytes,"multipart/*"); > > zipBytes is a byte[] and I wasn't sure what to use for the mime type > so I used multipart/*, but that doesn't seem to work. > > Are there any suggestions on how to send the attachment correctly? > > Thank you >
Re: attachments question
I'm actually creating the zip file in memory and passing a reference to the byte[] created. My service is based on an ejb method that looks like this: public byte[] getZipOutput(WageWithholdingTO[] wwArray) I would prefer not to write the file to the file system and then read it from there just to create the datahandler. Also I need to provide both the string (confirmationCode) and the datahandler in the soap response. How do you mean 'make sure there is a typemapping registered for datahandler'? When you create a datahandler you have to specify a typemapping ("multipart/*"), right? Is there something else I'm missing? On Apr 5, 2005 10:24 AM, THOMAS, JAI [AG-Contractor/1000] <[EMAIL PROTECTED]> wrote: > If you are attaching an already created zip file, create data handler from > FileDataSource. > That way, you let datahandler to set the appropriate mime type. > dhSource = new DataHandler(new FileDataSource(docFile)); > > Also make sure there is typemapping registered for DataHandler. > > Jai > > > -Original Message- > From: Brian Rook [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 11:12 AM > To: axis-user@ws.apache.org > Subject: attachments question > > I'm trying to send back both a string and a zip file from a webservice > built using axis1_2RC1. here's the entry in the wsdl: > > code: > > http://www.w3.org/2001/XMLSchema"; > targetNamespace="http://websvc.eiwo.childsupport.colorado.gov"; > elementFormDefault="qualified"> >http://xml.apache.org/xml-soap"/> > > > > type="apachesoap:DataHandler"/> > > > > > I can build and deploy and call the service but it fails with this message: > > code: > > AxisFault > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: java.lang.ClassCastException > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException > at > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > at > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824) > at > javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215) > at > javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) > at > javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914) > at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895) > at > org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201) > > Here's the line that creates the datahandler: > > DataHandler dh = new DataHandler(zipBytes,"multipart/*"); > > zipBytes is a byte[] and I wasn't sure what to use for the mime type > so I used multipart/*, but that doesn't seem to work. > > Are there any suggestions on how to send the attachment correctly? > > Thank you >
RE: attachments question
If you are attaching an already created zip file, create data handler from FileDataSource. That way, you let datahandler to set the appropriate mime type. dhSource = new DataHandler(new FileDataSource(docFile)); Also make sure there is typemapping registered for DataHandler. Jai -Original Message- From: Brian Rook [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 11:12 AM To: axis-user@ws.apache.org Subject: attachments question I'm trying to send back both a string and a zip file from a webservice built using axis1_2RC1. here's the entry in the wsdl: code: http://www.w3.org/2001/XMLSchema"; targetNamespace="http://websvc.eiwo.childsupport.colorado.gov"; elementFormDefault="qualified"> http://xml.apache.org/xml-soap"/> I can build and deploy and call the service but it fails with this message: code: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.ClassCastException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824) at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895) at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201) Here's the line that creates the datahandler: DataHandler dh = new DataHandler(zipBytes,"multipart/*"); zipBytes is a byte[] and I wasn't sure what to use for the mime type so I used multipart/*, but that doesn't seem to work. Are there any suggestions on how to send the attachment correctly? Thank you
attachments question
I'm trying to send back both a string and a zip file from a webservice built using axis1_2RC1. here's the entry in the wsdl: code: http://www.w3.org/2001/XMLSchema"; targetNamespace="http://websvc.eiwo.childsupport.colorado.gov"; elementFormDefault="qualified"> http://xml.apache.org/xml-soap"/> I can build and deploy and call the service but it fails with this message: code: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.ClassCastException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824) at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895) at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201) Here's the line that creates the datahandler: DataHandler dh = new DataHandler(zipBytes,"multipart/*"); zipBytes is a byte[] and I wasn't sure what to use for the mime type so I used multipart/*, but that doesn't seem to work. Are there any suggestions on how to send the attachment correctly? Thank you
How to customize the soap message generated by .NET
Hi All, I have included all the relevant files in this mail. Basically I have below soap message generated by .NET (installed Microsoft .NET 1.1 Framework and am running the exe that I got from this url http://www.gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=65A1D4EA-0F7A-41BD-8494-E916EBC4159C) using a WSDL generated by AXIS 1.2 RC2. Originally request soap message generated by .NET Client http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://ws.as.com/wsdl/typesws";> http://ws.as.com/schema/typesws";>100 http://ws.as.com/schema/typesws";>ram http://ws.as.com/schema/typesws";>99 Originally response soap message generated by AXIS 1.2 RC2 Server ResponseCode: 200 (OK) Server:WebSphere Application Server/5.1 Content-Type:text/xml; charset=utf-8 Content-Language:en-US Transfer-Encoding:chunked http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://ws.as.com/wsdl/typesws";> 100 dummystring The soap request message I am expecting from .NET Client -- http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://ws.as.com/wsdl/typesws";> http://ws.as.com/schema/typesws";> http://ws.as.com/schema/typesws";>100 http://ws.as.com/schema/typesws";>ram http://ws.as.com/schema/typesws";>99 WSDL -- http://ws.as.com/wsdl/typesws"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:impl="http://ws.as.com/wsdl/typesws"; xmlns:intf="http://ws.as.com/wsdl/typesws"; xmlns:tns1="http://ws.as.com/wsdl/typesws"; xmlns:tns2="http://ws.as.com/schema/typesws";> http://ws.as.com/schema/typesws"; xmlns="http://www.w3.org/2001/XMLSchema";> http://ws.as.com/wsdl/typesws"; xmlns="http://www.w3.org/2001/XMLSchema";> http://ws.as.com/schema/typesws"/> http://schemas.xmlsoap.org/soap/http"/> http://10.236.235.213:/IRSCProj04022005Axis12Rc2Web/services/TypesService"; /> Can anybody please tell me how can I get the soap message that I have explained above under the heading "The soap request message I am expecting from .NET Client". Is there anything I can change in my WSDL. Please suggest. - Kumar.
Programmatic Service Deployment
Hi, I'm writing some infrastructure that is expected to take a Class and a service name (String), and deploy a service with the provided name, dispatching requests to instances of the given class. I know the way I'd like to accomplish this, but I'm running into some difficulties. What I'd like to do is use a handler to look at the request when it arrives. If it is a request to a service I am aware of, but has not been deployed, I deploy it using the AdminClient/AxisServlet, similar to what I would expect JWS files are doing, and the request is serviced. The problem is that the handlers (even transport handlers?) are only being invoked on requests for services that are already deployed. Is there any way for Axis users to accomplish something similar to what JWS handlers do? -- Brad
Axis and Macromedia Jrun / Tomcat 5.5
Where can I find info about running Axis with Macromedia Jrun and also Tomcat 5.5? The online Axis docs still say that Axis should be run under Tomcat 4.1.x. Is it not ‘safe’ to run it under 5.5.x yet? I am currently running with Tomcat 4.1.23 but we are considering running with Jrun or Tomcat 5.5 – I wanted to know what the implications of this would be. Rgds Khalid Web Developer TAG This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk
List of Possible Exception Messages?
My project is consuming services from an Axis server, and we'd like to compile a list of the possible faultstring values we could get returned in a SOAP fault message, so we can design an auditing service that properly accounts for all known error conditions that fit certain criteria. I thought I might get this info from the Axis source code, but it looks like I'd have to go through every class that invokes an Exception, and note the message string that it passes to the exception object, as the message strings with which exceptions are invoked usually make their way into the faultstring element of the SOAP fault message. The info is not important enough to justify that sort of effort, but I was wondering if there might be documented somewhere already a list of the exception messages/faultstring values generated by the Axis code. Even a partial list would be of some value.
Problem creating maxLength restriction on attribute of type string
I'm getting an error when trying to view the WSDL for my web service. Has anyone else had similar problems? Any workarounds? WSDL: ... ... ERROR: Fault - Bean attribute AbstractorComments is of type java.lang.String, which is not a simple type ___ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
Re: bes book?
Remembered your question. Last night I found and downloaded Apache Axis Live by James Goodwill. It's helped me with things like serializing arrays of user-defined objects. The online copy is being updated all the time - mine was dated February 2005. It's kept online by SourceBeat. You should be able to find it. Madeleine John Windberg wrote: I have Oreilly's "Programming Axis" on order from Amazon, but it's past due and does not appear on the Oreilly web site. What's the best book to learn everything about Axis? Thanks -J
WSS4J and Kerberos Ticket
Dear all, Dose WSS4J support SecurityToken like Kerberos Ticket ? If yes, anybody please give me an example of using Kerberos Ticket for signing and encrypting SOAP message. Thanks and Best Regards, - Pham Hoai Van Y!: hoaivanpham Tel: 7.220.105 Mobile: 0915.116.202 Website: http://hoaivan.info
Re: gSOAP 2.7 (client)<-> Axis Java 1.2rc3 Interoperability problem
You need to copy the wsdl file to WEB-INF directory, or wherever the URL points to as specified in your wsdd file. Redeploy the service and point your browser to ?WSDL. The wsdl displayed in browser should identify the message parts according to the wsdl file definitions. - venkat On Apr 5, 2005 4:28 PM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: > I tried it but it didn't work. Is the wsdl file required by Axis only when > deploying the service ? Do I also need to copy it in the WEB-INF directory. > > Anyway I "googled" and found I was not the only one having > troubles: cf http://java2.5341.com/msg/99739.html > > Thanks for your help. > > Bruno > > Got it. Axis server side doesn't have access to your wsdl file. > > you can specify something like this in wsdd file while deploying - > > > > > > . .. .. .. .. .. . > > /srv/tomcat/webapps/axis/wsdl/GetQuote.wsdl > > > > > > hope that helps > > - venkat > > > > > > On Apr 5, 2005 2:27 PM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: > >> Yes it does, but the part name should be "result" instead of > >> "getQuoteReturn" or am I misinterpreting the WSDL file ? > >> > >> Bruno > >>> But, doesn't the operation defintion inside portType indicate > >>> "GetQuoteResponse"? > >>> > >>> > >>> > >>> > >>> > >>> > >>> - venkat > >>> > >>> > >>> On Apr 5, 2005 11:46 AM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: > Hi , > > I have a problem with the latest version of Axis Java axis-1.2rc3 and > gSOAP > C++. When running the sample "stock" service on Axis and calling the > getQuote method with gSOAP, the low level SOAP Response returned is the > following: > > ... > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > xmlns:ns1="urn:xmltoday-delayed-quotes"> > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > xsi:type="xsd:float" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>90.32 > > ... > > PROBLEM: gSOAP doesn't manage to read the return value because it should > be > stored in a tag named "result" as stated in the WSDL file > (GetQuote.wsdl): > > ... > > > > ... > > Any Ideas ? > > Bruno > > > >> > >> > >
Re: gSOAP 2.7 (client)<-> Axis Java 1.2rc3 Interoperability problem
I tried it but it didn't work. Is the wsdl file required by Axis only when deploying the service ? Do I also need to copy it in the WEB-INF directory. Anyway I "googled" and found I was not the only one having troubles: cf http://java2.5341.com/msg/99739.html Thanks for your help. Bruno > Got it. Axis server side doesn't have access to your wsdl file. > you can specify something like this in wsdd file while deploying - > > > . .. .. .. .. .. . > /srv/tomcat/webapps/axis/wsdl/GetQuote.wsdl > > > hope that helps > - venkat > > > On Apr 5, 2005 2:27 PM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: >> Yes it does, but the part name should be "result" instead of >> "getQuoteReturn" or am I misinterpreting the WSDL file ? >> >> Bruno >>> But, doesn't the operation defintion inside portType indicate >>> "GetQuoteResponse"? >>> >>> >>> >>> >>> >>> >>> - venkat >>> >>> >>> On Apr 5, 2005 11:46 AM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: Hi , I have a problem with the latest version of Axis Java axis-1.2rc3 and gSOAP C++. When running the sample "stock" service on Axis and calling the getQuote method with gSOAP, the low level SOAP Response returned is the following: ... >>> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="urn:xmltoday-delayed-quotes"> >>> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xsi:type="xsd:float" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>90.32 ... PROBLEM: gSOAP doesn't manage to read the return value because it should be stored in a tag named "result" as stated in the WSDL file (GetQuote.wsdl): ... ... Any Ideas ? Bruno >> >>
RE: what is the different between org.apache.axis.hander.Handler and javax.xml.rpc.handler.Handler ?
Thanks Venkat, If my hander implements Java'Handler, will it be able to be used with JWSDP and any other JAX-RPC comliant SOAP Engine ? - Pham Hoai Van Y!: hoaivanpham Tel: 7.220.105 Mobile: 0915.116.202 Website: http://hoaivan.info -Original Message- From: Venkat Reddy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 3:35 PM To: axis-user@ws.apache.org Subject: Re: what is the different between org.apache.axis.hander.Handler and javax.xml.rpc.handler.Handler ? The javax.xml.rpc.handler.Handler is provided for compatibilty with JAX-RPC programming model. The org.apache.axis.handler.Handler is the central piece in Axis arctitecutre for message processing. Naturally the same is used for message handlers. It is recommended to use org.apache.axis.handler.Handler, unless you really want the handlers to be JAX-RPC compliant. Please refer to axis documentation for further details on axis handler architecture. - venkat On Apr 5, 2005 1:04 PM, Pham Hoai Van <[EMAIL PROTECTED]> wrote: > Dear all, > I used both Handler of org.apache and javax.xml.rpc. > Why do AXIS define a new Handler when using > javax.xml.rpc.handler.Handler is sufficent I think ? > In which case should we use axis's Handler or Java' Handler ? > Thanks for reading. > Best Regards, > - > Pham Hoai Van > Y!: hoaivanpham > Tel: 7.220.105 > Mobile: 0915.116.202 > Website: http://hoaivan.info > >
Re: gSOAP 2.7 (client)<-> Axis Java 1.2rc3 Interoperability problem
Got it. Axis server side doesn't have access to your wsdl file. you can specify something like this in wsdd file while deploying - . .. .. .. .. .. . /srv/tomcat/webapps/axis/wsdl/GetQuote.wsdl hope that helps - venkat On Apr 5, 2005 2:27 PM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: > Yes it does, but the part name should be "result" instead of > "getQuoteReturn" or am I misinterpreting the WSDL file ? > > Bruno > > But, doesn't the operation defintion inside portType indicate > > "GetQuoteResponse"? > > > > > > > > > > > > > > - venkat > > > > > > On Apr 5, 2005 11:46 AM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: > >> Hi , > >> > >> I have a problem with the latest version of Axis Java axis-1.2rc3 and gSOAP > >> C++. When running the sample "stock" service on Axis and calling the > >> getQuote method with gSOAP, the low level SOAP Response returned is the > >> following: > >> > >> ... > >> > >> >> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > >> xmlns:ns1="urn:xmltoday-delayed-quotes"> > >> > >> > >> >> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > >> xsi:type="xsd:float" > >> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>90.32 > >> > >> ... > >> > >> PROBLEM: gSOAP doesn't manage to read the return value because it should be > >> stored in a tag named "result" as stated in the WSDL file (GetQuote.wsdl): > >> > >> ... > >> > >> > >> > >> ... > >> > >> Any Ideas ? > >> > >> Bruno > >> > >> > >
Re: gSOAP 2.7 (client)<-> Axis Java 1.2rc3 Interoperability problem
Yes it does, but the part name should be "result" instead of "getQuoteReturn" or am I misinterpreting the WSDL file ? Bruno > But, doesn't the operation defintion inside portType indicate > "GetQuoteResponse"? > > > > > > > - venkat > > > On Apr 5, 2005 11:46 AM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: >> Hi , >> >> I have a problem with the latest version of Axis Java axis-1.2rc3 and gSOAP >> C++. When running the sample "stock" service on Axis and calling the >> getQuote method with gSOAP, the low level SOAP Response returned is the >> following: >> >> ... >> >>> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; >> xmlns:ns1="urn:xmltoday-delayed-quotes"> >> >> >>> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; >> xsi:type="xsd:float" >> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>90.32 >> >> ... >> >> PROBLEM: gSOAP doesn't manage to read the return value because it should be >> stored in a tag named "result" as stated in the WSDL file (GetQuote.wsdl): >> >> ... >> >> >> >> ... >> >> Any Ideas ? >> >> Bruno >> >>
Re: gSOAP 2.7 (client)<-> Axis Java 1.2rc3 Interoperability problem
But, doesn't the operation defintion inside portType indicate "GetQuoteResponse"? - venkat On Apr 5, 2005 11:46 AM, Bruno LEDOUX <[EMAIL PROTECTED]> wrote: > Hi , > > I have a problem with the latest version of Axis Java axis-1.2rc3 and gSOAP > C++. When running the sample "stock" service on Axis and calling the > getQuote method with gSOAP, the low level SOAP Response returned is the > following: > > ... > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > xmlns:ns1="urn:xmltoday-delayed-quotes"> > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > xsi:type="xsd:float" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>90.32 > > ... > > PROBLEM: gSOAP doesn't manage to read the return value because it should be > stored in a tag named "result" as stated in the WSDL file (GetQuote.wsdl): > > ... > > > > ... > > Any Ideas ? > > Bruno > >
Re: How does one extract the key (say Symmetric Key) from the Key Info?
may be you can get more help in fx-dev or xml security forums ... On Apr 5, 2005 12:38 PM, anshuk pal chaudhuri <[EMAIL PROTECTED]> wrote: > How does one extract the value of the symmetric key > from the KeyInfo Element from the Encrypted XML > Document? > That I am trying to use In XML Decryption. > And i am trying to do that using XML Security APIS. > Looking forward for ur reply. > > > __ > Do you Yahoo!? > Make Yahoo! your home page > http://www.yahoo.com/r/hs >
Re: what is the different between org.apache.axis.hander.Handler and javax.xml.rpc.handler.Handler ?
The javax.xml.rpc.handler.Handler is provided for compatibilty with JAX-RPC programming model. The org.apache.axis.handler.Handler is the central piece in Axis arctitecutre for message processing. Naturally the same is used for message handlers. It is recommended to use org.apache.axis.handler.Handler, unless you really want the handlers to be JAX-RPC compliant. Please refer to axis documentation for further details on axis handler architecture. - venkat On Apr 5, 2005 1:04 PM, Pham Hoai Van <[EMAIL PROTECTED]> wrote: > Dear all, > I used both Handler of org.apache and javax.xml.rpc. > Why do AXIS define a new Handler when using > javax.xml.rpc.handler.Handler is sufficent I think ? > In which case should we use axis's Handler or Java' Handler ? > Thanks for reading. > Best Regards, > - > Pham Hoai Van > Y!: hoaivanpham > Tel: 7.220.105 > Mobile: 0915.116.202 > Website: http://hoaivan.info > >
what is the different between org.apache.axis.hander.Handler and javax.xml.rpc.handler.Handler ?
Dear all, I used both Handler of org.apache and javax.xml.rpc. Why do AXIS define a new Handler when using javax.xml.rpc.handler.Handler is sufficent I think ? In which case should we use axis's Handler or Java' Handler ? Thanks for reading. Best Regards, - Pham Hoai Van Y!: hoaivanpham Tel: 7.220.105 Mobile: 0915.116.202 Website: http://hoaivan.info
How does one extract the key (say Symmetric Key) from the Key Info?
How does one extract the value of the symmetric key from the KeyInfo Element from the Encrypted XML Document? That I am trying to use In XML Decryption. And i am trying to do that using XML Security APIS. Looking forward for ur reply. __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs
How does one extract the key (say Symmetric Key) from the Key Info?
--- Davanum Srinivas <[EMAIL PROTECTED]> wrote: > see the code in wss4j > > > On Fri, 11 Mar 2005 06:12:29 -0800 (PST), anshuk pal > chaudhuri > <[EMAIL PROTECTED]> wrote: > > I was trying to implemennt X.509v3 Binary Security > > Token. > > I have encrypted an x.509 cerificate using > > Bse64Encoding and also I have the encrypted value. > > Now, > > How do I decrypt that and get back the > certificate? > > Please help me out > > > > > > __ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new resources > site! > > http://smallbusiness.yahoo.com/resources/ > > > > > -- > Davanum Srinivas - > http://webservices.apache.org/~dims/ > __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/