Russell, Wish you a very happy and prosperous new year as well.
Was working off of http://gotdotnet.com/team/xml_wsspecs/dime/WSDL-Extension-for-DIME.htm (and the WSDL's for dime-doc and dime-rpc that is a part of the SOAPBuilders Interop effort). Thanks, dims --- Russell Butek <[EMAIL PROTECTED]> wrote: > > > > > Hi, dims, > > Happy New Year! > > I wasn't aware that there was a formal WSDL DIME spec. What spec are you > working from for this stuff? > > Russell Butek > [EMAIL PROTECTED] > > ----- Forwarded by Russell Butek/Austin/IBM on 01/02/2003 07:19 AM ----- > > > > [EMAIL PROTECTED] > > > To: [EMAIL PROTECTED] > > > 12/28/2002 11:59 cc: > > > AM Subject: cvs commit: > xml-axis/java/src/org/apache/axis/utils XMLUtils.java > Please respond to > > > axis-dev > > > > > > > > > > > > > dims 2002/12/28 09:59:06 > > Modified: java/test/wsdl/interop4/groupG/dime/rpc > AttachmentsBindingImpl.java build.xml > DimeRPCInteropTestCase.java > java/src/org/apache/axis/wsdl/symbolTable BindingEntry.java > SymbolTable.java > java/src/org/apache/axis Constants.java > java/src/org/apache/axis/wsdl/toJava JavaStubWriter.java > java/src/org/apache/axis/utils XMLUtils.java > Log: > Initial Impl to enable DIME support in WSDL2Java. Needed for GroupG. > Needs more work. > > Revision Changes Path > 1.2 +7 -8 > xml-axis/java/test/wsdl/interop4/groupG/dime/rpc/AttachmentsBindingImpl.java > > > Index: AttachmentsBindingImpl.java > =================================================================== > RCS file: > >/home/cvs/xml-axis/java/test/wsdl/interop4/groupG/dime/rpc/AttachmentsBindingImpl.java,v > > retrieving revision 1.1 > retrieving revision 1.2 > diff -u -r1.1 -r1.2 > --- AttachmentsBindingImpl.java 26 Dec 2002 23:26:22 -0000 > 1.1 > +++ AttachmentsBindingImpl.java 28 Dec 2002 17:59:06 -0000 > 1.2 > @@ -8,7 +8,7 @@ > package test.wsdl.interop4.groupG.dime.rpc; > > public class AttachmentsBindingImpl implements > test.wsdl.interop4.groupG.dime.rpc.AttachmentsPortType{ > - public test.wsdl.interop4.groupG.dime.rpc.xsd.ReferencedBinary > echoAttachment(test.wsdl.interop4.groupG.dime.rpc.xsd.ReferencedBinary in) > throws java.rmi.RemoteException { > + public org.apache.axis.attachments.OctetStream > echoAttachment(org.apache.axis.attachments.OctetStream in) throws > java.rmi.RemoteException { > return in; > } > > @@ -16,19 +16,18 @@ > return in; > } > > - public byte[] > echoAttachmentAsBase64(test.wsdl.interop4.groupG.dime.rpc.xsd.ReferencedBinary > in) throws java.rmi.RemoteException { > - return in.getValue(); > + public byte[] > echoAttachmentAsBase64(org.apache.axis.attachments.OctetStream in) throws > java.rmi.RemoteException { > + return in.getBytes(); > } > > - public test.wsdl.interop4.groupG.dime.rpc.xsd.ReferencedBinary > echoBase64AsAttachment(byte[] in) throws java.rmi.RemoteException { > - return new > test.wsdl.interop4.groupG.dime.rpc.xsd.ReferencedBinary(in); > + public org.apache.axis.attachments.OctetStream > echoBase64AsAttachment(byte[] in) throws java.rmi.RemoteException { > + return new org.apache.axis.attachments.OctetStream(in); > } > > public void echoUnrefAttachments() throws java.rmi.RemoteException { > - //TODO: What should we do here? > } > > - public java.lang.String > echoAttachmentAsString(test.wsdl.interop4.groupG.dime.rpc.xsd.ReferencedText > in) throws java.rmi.RemoteException { > - return new String(in.getValue()); > + public java.lang.String echoAttachmentAsString(java.lang.String in) > throws java.rmi.RemoteException { > + return in; > } > } > > > > 1.4 +2 -0 > xml-axis/java/test/wsdl/interop4/groupG/dime/rpc/build.xml > > Index: build.xml > =================================================================== > RCS file: > /home/cvs/xml-axis/java/test/wsdl/interop4/groupG/dime/rpc/build.xml,v > retrieving revision 1.3 > retrieving revision 1.4 > diff -u -r1.3 -r1.4 > --- build.xml 26 Dec 2002 23:26:22 -0000 1.3 > +++ build.xml 28 Dec 2002 17:59:06 -0000 1.4 > @@ -71,12 +71,14 @@ > </wsdl2java> > > <mkdir dir="${build.dest}"/> > + <!-- <copy > file="${axis.home}/test/wsdl/interop4/groupG/dime/rpc/DimeRPCInteropTestCase.java" > > todir="${root.dir}/build/work/test/wsdl/interop4/groupG/dime/rpc" > overwrite="yes"/> <copy > file="${axis.home}/test/wsdl/interop4/groupG/dime/rpc/AttachmentsBindingImpl.java" > > todir="${root.dir}/build/work/test/wsdl/interop4/groupG/dime/rpc" > overwrite="yes"/> + --> > <!-- compile the skeletons --> > <javac srcdir="${build.dir}/work" > destdir="${build.dest}" debug="on"> > > > > 1.2 +37 -25 > xml-axis/java/test/wsdl/interop4/groupG/dime/rpc/DimeRPCInteropTestCase.java > > > Index: DimeRPCInteropTestCase.java > =================================================================== > RCS file: > >/home/cvs/xml-axis/java/test/wsdl/interop4/groupG/dime/rpc/DimeRPCInteropTestCase.java,v > > retrieving revision 1.1 > retrieving revision 1.2 > diff -u -r1.1 -r1.2 > --- DimeRPCInteropTestCase.java 26 Dec 2002 23:26:22 -0000 > 1.1 > +++ DimeRPCInteropTestCase.java 28 Dec 2002 17:59:06 -0000 > 1.2 > @@ -7,16 +7,22 @@ > > package test.wsdl.interop4.groupG.dime.rpc; > > -import java.util.Arrays; > +import java.net.URL; > > public class DimeRPCInteropTestCase extends junit.framework.TestCase { > public DimeRPCInteropTestCase(java.lang.String name) { > super(name); > } > + > + protected void setUp() throws Exception { > + if(url == null) { > + url = new URL(new > >test.wsdl.interop4.groupG.dime.rpc.DimeRPCInteropLocator().getDimeRPCSoapPortAddress()); > > + } > + } > public void test1DimeRPCSoapPortEchoAttachment() throws Exception { > test.wsdl.interop4.groupG.dime.rpc.AttachmentsPortType binding; > try { > - binding = new > test.wsdl.interop4.groupG.dime.rpc.DimeRPCInteropLocator().getDimeRPCSoapPort(); > > + binding = new > test.wsdl.interop4.groupG.dime.rpc.DimeRPCInteropLocator().getDimeRPCSoapPort(url); > > } > catch (javax.xml.rpc.ServiceException jre) { > if(jre.getLinkedCause()!=null) > @@ -25,18 +31,17 @@ > } > === message truncated === ===== Davanum Srinivas - http://xml.apache.org/~dims/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com