Actually, the code you included looks more like a client proxy than a
service.  Also, what code generates the request that you show?  I don't
see how Apache SOAP would generate that message.

Scott Nichol

----- Original Message -----
From: "Scott Nichol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 7:59 PM
Subject: Re: Using DateTime object


> Honestly, the WSDL is what I would need.  I don't have time to create
a
> .NET service based on your code and look at the WSDL myself.
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Siddhartha Mehta" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 17, 2002 7:43 PM
> Subject: Re: Using DateTime object
>
>
> >
> > Here is my C# webservice:
> >
> >
>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://stora
> gepoint.net/soap/UploadStart",
> RequestNamespace="http://storagepoint.net/soap/";,
> ResponseNamespace="http://storagepoint.net/soap/";,
> Use=System.Web.Services.Description.SoapBindingUse.Literal,
>
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)
> ]
> >
> > public bool UploadStart(string SessionKey, long FolderId, string
> FileName, System.SByte bUseCompression, long UncompressedSize,
> System.DateTime Created, System.DateTime Modified, System.DateTime
> Accessed, ref string StreamToken) {
> >
> > object[] results = this.Invoke("UploadStart", new object[] {
> >
> > SessionKey,
> >
> > FolderId,
> >
> > FileName,
> >
> > bUseCompression,
> >
> > UncompressedSize,
> >
> > Created,
> >
> > Modified,
> >
> > Accessed,
> >
> > StreamToken});
> >
> > StreamToken = ((string)(results[1]));
> >
> > return ((bool)(results[0]));
> >
> > }
> >
> >
> > And the SOAP message that is sent is:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <soap-env:Envelope
>
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/";><soap-env:Hea
> der/>
> >
> > <soap-env:Body><UploadStart xmlns="http://storagepoint.net/soap/";
> xmlns:A="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:B="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:C="http://www.w3.org/2001/XMLSchema-instance";>
> >
> > <SessionKey>5617F6B2-AEAB-45CF-80C2-ED0379109DD9</SessionKey>
> >
> > <FolderId>8</FolderId>
> >
> > <FileName>run.cmd</FileName>
> >
> > <bUseCompression>0</bUseCompression>
> >
> > <UncompressedSize>695</UncompressedSize>
> >
> > <Created A:type="DateTime">12/17/2002 4:39:40 PM</Created>
> >
> > <Modified B:type1="DateTime">12/17/2002 4:39:40 PM</Modified>
> >
> > <Accessed C:type2="DateTime">12/17/2002 4:39:40 PM</Accessed>
> >
> > <StreamToken></StreamToken>
> >
> > </UploadStart>
> >
> > </soap-env:Body>
> >
> > </soap-env:Envelope>
> >
> >
> >
> > And the error I get is:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> >   <soap:Body>
> >     <soap:Fault>
> >       <faultcode>soap:Client</faultcode>
> >       <faultstring>Server was unable to read request. --&gt; There
is
> an error i
> > n XML document (2, 565). --&gt; String was not recognized as a valid
> DateTime.</
> > faultstring>
> >       <detail/>
> >     </soap:Fault>
> >   </soap:Body>
> > </soap:Envelope>
> >
> > The strange thing here is, the error message says that the error is
at
> column 565 which is surprisingly <Modified> time. Does this mean that
> the <Created> time is in correct format?
> >
> > Thanks!!
> >
> >  Scott Nichol <[EMAIL PROTECTED]> wrote:Can you post the
> WSDL for the C# web service?
> >
> > Scott Nichol
> >
> > ----- Original Message -----
> > From: "Siddhartha Mehta"
> > To:
> > Sent: Tuesday, December 17, 2002 6:55 PM
> > Subject: Using DateTime object
> >
> >
> > >
> > > I am using C# webservice and a Java client. One of the functions
in
> my
> > webservice expects a DateTime (C# object). How would I send a
datetime
> > object from my Java client code? Can anyone help me.
> > >
> > > Thanks,
> > >
> > > Siddhartha
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> >
> >
> > --
> > To unsubscribe, e-mail:
> > For additional commands, e-mail:
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to