You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Levin Nir <Ni...@comverse.com> on 2006/06/13 11:10:23 UTC

using a web-server as a soap client to another web-server

Hi axis-users,

I have a Java SOAP server application running under Tomcat using the
Apache Axis SOAP library. This application needs to call another SOAP
server with an attachment and get an attachment back.=20 A strange thing
happens:
I wrote a standalone SOAP client which works fine with the second soap
server (I can see the received attachment).
But when I connect the second SOAP server from the first SOAP server
application it does not receive the attachment (the connection works
fine but the SOAP attachment is not received).
Is it a security problem?

The exception I get is:
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:=20
 faultString: java.io.IOException: No such file or directory
faultActor:=20  faultNode:=20  faultDetail:=20
        {http://xml.apache.org/axis/}stackTrace:java.io.IOException: No
such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.checkAndCreate(File.java:1345)
        at java.io.File.createTempFile(File.java:1434)
        at
org.apache.axis.attachments.ManagedMemoryDataSource.flushToDisk(ManagedM
emoryDataSource.java:386)
        at
org.apache.axis.attachments.ManagedMemoryDataSource.write(ManagedMemoryD
ataSource.java:276)
        at
org.apache.axis.attachments.ManagedMemoryDataSource.&lt;init&gt;(Managed
MemoryDataSource.java:149)
        at
org.apache.axis.attachments.MultiPartRelatedInputStream.readTillFound(Mu
ltiPartRelatedInputStream.java:557)
        at
org.apache.axis.attachments.MultiPartRelatedInputStream.readAll(MultiPar
tRelatedInputStream.java:433)
        at
org.apache.axis.attachments.MultiPartRelatedInputStream.getAttachments(M
ultiPartRelatedInputStream.java:439)
        at
org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(Attachmen
tsImpl.java:171)
        at
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(Attachmen
tsImpl.java:550)
        at org.apache.axis.Message.getAttachments(Message.java:689)
        at org.apache.axis.client.Stub.extractAttachments(Stub.java:298)

Thanks,
Nir