====================
source code for axis1 ==============================
…..
oper
= new org.apache.axis.description.OperationDesc();
oper.setName("Status");
param
= new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("",
"Account"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",
"string"), java.lang.String.class, false, false);
oper.addParameter(param);
param
= new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("",
"Password"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",
"string"), java.lang.String.class, false, false);
oper.addParameter(param);
param
= new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("",
"JobId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",
"int"), int.class, false, false);
oper.addParameter(param);
param
= new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("",
"Protokoll"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://xml.apache.org/xml-soap",
"DataHandler"), javax.activation.DataHandler.class, false, false);
oper.addParameter(param);
oper.setReturnType(new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
oper.setReturnClass(int.class);
oper.setReturnQName(new
javax.xml.namespace.QName("", "return"));
_operations[12]
= oper;
….
public
int status(java.lang.String account, java.lang.String password, int jobId, org.apache.axis.holders.DataHandlerHolder
protokoll) throws java.rmi.RemoteException {
if
(super.cachedEndpoint == null) {
throw
new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call
_call = createCall();
_call.setOperation(_operations[12]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("urn:XMLWSIntf-IXMLWS#Status");
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new
javax.xml.namespace.QName("urn:XMLWSIntf-IXMLWS",
"Status"));
setRequestHeaders(_call);
setAttachments(_call);
try
{
java.lang.Object
_resp = _call.invoke(new java.lang.Object[] { account, password, new java.lang.Integer(jobId),
protokoll.value });
if
(_resp instanceof java.rmi.RemoteException) {
throw
(java.rmi.RemoteException) _resp;
}
else {
extractAttachments(_call);
java.util.Map
_output;
_output
= _call.getOutputParams();
try
{
protokoll.value
= (javax.activation.DataHandler) _output.get(new javax.xml.namespace.QName("",
"Protokoll"));
}
catch (java.lang.Exception _exception) {
protokoll.value
= (javax.activation.DataHandler) org.apache.axis.utils.JavaUtils.convert(_output.get(new
javax.xml.namespace.QName("", "Protokoll")), byte[].class);
}
try
{
return
((java.lang.Integer) _resp).intValue();
}
catch (java.lang.Exception _exception) {
return
((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
}
}
}
catch (org.apache.axis.AxisFault axisFaultException) {
throw
axisFaultException;
}
}
On 9/21/05, Thilina Gunarathne <[EMAIL PROTECTED] > wrote:
Hi,
I cannot understand whether this message is a SOAP with Attachements message or
a MTOM message.. Anyway MTOM *spec* does not support the Content Location based
referencing of MIME messages. So that I assume this is a SwA message.. (Even
for SwA *Axis2* does not support the Content-Location based referencing.)
In any case this the Response Message you have provided as the message trace
does not seems to be a valid SwA (or MTOM) message. It does not contain the
type parameter in content-type header. Follwoing is the example header in SwA
w3c note. Look at the type=text/xml;
eg :
Content-Type: Multipart/Related; boundary=MIME_boundary; type=text/xml;
start="<
[EMAIL PROTECTED]>"
What is the .net version you are using. FYI WSE 3.0 MTOM succesfull
interops with Axis2.
We also seems to be having a bug, cause we return a null pointer exception,
without mentioning the exact cause. I'll fix it.
Thanks,
~Thilina
On 9/21/05, Filipp Akinfiev <[EMAIL PROTECTED] > wrote:
@Saminda
private static EndpointReference targetEPR = new
EndpointReference("http://ccs.fax.de/xmlws.exe/soap/IXMLWS")
;
@Saminda & @Dims
i cannot compile the last Sourcesnapshot.... I have installed Java 1.5
and I got known error in saaj package, see Thread "[Axis2] Build problems
during compiling" ->
http://marc.theaimsgroup.com/?l=axis-user&m=112565105102599&w=2
I have a look in sourcecode in package org.apache.axis2.saaj in eclipse, and
I get following errors:
=================================
AttrImpl:
The type AttrImpl must implement the inherited abstract method Attr.isId()
The type AttrImpl must implement the inherited abstract method
Attr.getSchemaTypeInfo()
=================================
NodeImpl:
The type NodeImpl must implement the inherited abstract method
Node.setUserData(String, Object, UserDataHandler)
The type NodeImpl must implement the inherited abstract method
Node.setTextContent (String)
The type NodeImpl must implement the inherited abstract method
Node.lookupPrefix(String)
The type NodeImpl must implement the inherited abstract method
Node.lookupNamespaceURI(String)
The type NodeImpl must implement the inherited abstract method
Node.isSameNode(Node)
The type NodeImpl must implement the inherited abstract method
Node.isEqualNode(Node)
The type NodeImpl must implement the inherited abstract method
Node.isDefaultNamespace(String)
The type NodeImpl must implement the inherited abstract method
Node.getUserData(String)
The type NodeImpl must implement the inherited abstract method
Node.getTextContent()
The type NodeImpl must implement the inherited abstract method
Node.getFeature(String, String)
The type NodeImpl must implement the inherited abstract method
Node.getBaseURI()
The type NodeImpl must implement the inherited abstract method
Node.compareDocumentPosition (Node)
==================================
SOAPConnectionImpl:
The method createAttachmentPart() in the type SOAPMessage is not applicable
for the arguments (DataHandler)
==================================
SOAPDocumentImpl:
The type SOAPDocumentImpl must implement the inherited abstract method
Node.setUserData(String, Object, UserDataHandler)
The type SOAPDocumentImpl must implement the inherited abstract method
Node.setTextContent(String)
The type SOAPDocumentImpl must implement the inherited abstract method
Node.lookupPrefix(String)
The type SOAPDocumentImpl must implement the inherited abstract method
Node.lookupNamespaceURI (String)
The type SOAPDocumentImpl must implement the inherited abstract method
Node.isSameNode(Node) SOAPDocumentImpl.java
The type SOAPDocumentImpl must implement the inherited abstract method
Node.isEqualNode (Node) SOAPDocumentImpl.java
The type SOAPDocumentImpl must implement the inherited abstract method
Node.isDefaultNamespace(String)
The type SOAPDocumentImpl must implement the inherited abstract method
Node.getUserData(String)
The type SOAPDocumentImpl must implement the inherited abstract method
Node.getTextContent()
The type SOAPDocumentImpl must implement the inherited abstract method
Node.getFeature (String, String)
The type SOAPDocumentImpl must implement the inherited abstract method
Node.getBaseURI()
The type SOAPDocumentImpl must implement the inherited abstract method
Node.compareDocumentPosition (Node)
The type SOAPDocumentImpl must implement the inherited abstract method
Document.setXmlVersion(String)
The type SOAPDocumentImpl must implement the inherited abstract method
Document.setXmlStandalone (boolean)
The type SOAPDocumentImpl must implement the inherited abstract method
Document.setStrictErrorChecking(boolean)
The type SOAPDocumentImpl must implement the inherited abstract method
Document.setDocumentURI (String) SOAPDocumentImpl.java
The type SOAPDocumentImpl must implement the inherited abstract method
Document.renameNode(Node, String, String)
The type SOAPDocumentImpl must implement the inherited abstract method
Document.normalizeDocument()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.getXmlVersion()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.getXmlStandalone ()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.getXmlEncoding()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.getStrictErrorChecking ()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.getInputEncoding()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.getDomConfig()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.getDocumentURI()
The type SOAPDocumentImpl must implement the inherited abstract method
Document.adoptNode(Node)
=================================
SOAPElementImpl:
The type SOAPElementImpl must implement the inherited abstract method
Element.setIdAttributeNS(String, String, boolean)
The type SOAPElementImpl must implement the inherited abstract method
Element.setIdAttributeNode(Attr, boolean)
The type SOAPElementImpl must implement the inherited abstract method
Element.setIdAttribute(String, boolean)
The type SOAPElementImpl must implement the inherited abstract method
Element.getSchemaTypeInfo()
=================================
SOAPPartImpl:
The type SOAPPartImpl must implement the inherited abstract method
Node.setUserData(String, Object, UserDataHandler)
The type SOAPPartImpl must implement the inherited abstract method
Node.setTextContent(String)
The type SOAPPartImpl must implement the inherited abstract method
Node.lookupPrefix(String)
The type SOAPPartImpl must implement the inherited abstract method
Node.lookupNamespaceURI (String)
The type SOAPPartImpl must implement the inherited abstract method
Node.isSameNode(Node)
The type SOAPPartImpl must implement the inherited abstract method
Node.isEqualNode(Node)
The type SOAPPartImpl must implement the inherited abstract method
Node.isDefaultNamespace(String)
The type SOAPPartImpl must implement the inherited abstract method
Node.getUserData(String)
The type SOAPPartImpl must implement the inherited abstract method
Node.getTextContent ()
The type SOAPPartImpl must implement the inherited abstract method
Node.getFeature(String, String)
The type SOAPPartImpl must implement the inherited abstract method
Node.getBaseURI()
The type SOAPPartImpl must implement the inherited abstract method
Node.compareDocumentPosition(Node)
The type SOAPPartImpl must implement the inherited abstract method
Document.setXmlVersion(String)
The type SOAPPartImpl must implement the inherited abstract method
Document.setXmlStandalone(boolean)
The type SOAPPartImpl must implement the inherited abstract method
Document.setDocumentURI(String)
The type SOAPPartImpl must implement the inherited abstract method
Document.renameNode(Node, String, String)
The type SOAPPartImpl must implement the inherited abstract method
Document.normalizeDocument()
The type SOAPPartImpl must implement the inherited abstract method
Document.getXmlVersion()
The type SOAPPartImpl must implement the inherited abstract method
Document.getXmlStandalone()
The type SOAPPartImpl must implement the inherited abstract method
Document.getXmlEncoding ()
The type SOAPPartImpl must implement the inherited abstract method
Document.getInputEncoding()
The type SOAPPartImpl must implement the inherited abstract method
Document.getDomConfig()
The type SOAPPartImpl must implement the inherited abstract method
Document.getDocumentURI()
=================================
TextImpl:
The type TextImpl must implement the inherited abstract method
Text.replaceWholeText(String)
The type TextImpl must implement the inherited abstract method
Text.isElementContentWhitespace()
The type TextImpl must implement the inherited abstract method
Text.getWholeText()
=================================
--
"May the SourcE be with u"
http://www.bloglines.com/blog/thilina
http://webservices.apache.org/~thilina/