×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

wsdl problem

wsdl problem

wsdl problem

(OP)
Hi everyone,
i have a problem about wsdl, when i call a function to get xml i got following error.
thank about your advice.

RE: wsdl problem

Quote (baran121)

i got following error.
What error do you get?
What function do you call?

Number 5 need more input!

“Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.” (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: wsdl problem

(OP)

this below is my code detail.

ZARGE_SEND_CHAR_MAT_SALE sale = new ZARGE_SEND_CHAR_MAT_SALE();
Sum sumClnt = new Sum();
ZARGE_SEND_CHAR_MAT_SALEResponse res;

sumClnt.Credentials = new NetworkCredential("RD", "654321");
sale.ENT = "P";
sale.T_PORDER = new ZARGEV_AFS_PO[1];
res = new ZARGE_SEND_CHAR_MAT_SALEResponse();
res = sumClnt.ZARGE_SEND_CHAR_MAT_SALE(sale);

RE: wsdl problem

(OP)
invalidoperationexception was unhandled

konum: System.DateTimeParse.ParseExactMultiple(String s, String[] formats, DateTimeFormatInfo dtfi, DateTimeStyles style)
konum: System.DateTime.ParseExact(String s, String[] formats, IFormatProvider provider, DateTimeStyles style)
konum: System.Xml.Serialization.XmlSerializationReader.ToDate(String value)
konum: Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSum.Read4_ZARGEV_AFS_PO(Boolean isNullable, Boolean checkType)
konum: Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSum.Read6_Item(Boolean isNullable, Boolean checkType)
konum: Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSum.Read8_Item()
konum: Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer3.Deserialize(XmlSerializationReader reader)
konum: System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

RE: wsdl problem

(OP)
thank you.
actually when i click the link i can get big size of picture. and it is understandable.

RE: wsdl problem

Since this all references third party code, there is not much I can say.
But I would suspect this:

CODE

ZARGE_SEND_CHAR_MAT_SALEResponse res;
...
res = new ZARGE_SEND_CHAR_MAT_SALEResponse(); 
...does not work.
Is there any special reason why you want to treat your ZARGE_SEND_CHAR_MAT_SALEResponse object differently than the others and first declare it without initiating it?
Try this instead:

CODE

ZARGE_SEND_CHAR_MAT_SALEResponse res = new ZARGE_SEND_CHAR_MAT_SALEResponse(); 

Also: wrap your code in a try - catch block and get the Exception.Message.
Also: single-step through your code to identify the line that throws the exception.

“Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.” (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: wsdl problem

Oh, and could you please translate the exception message?
Most of us don't speak Turkish.tongue

“Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.” (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: wsdl problem

OH!
You got an XML error!
Make sure your XML file is valid. Any invalid characters in there?

“Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.” (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: wsdl problem

(OP)
actually even me i dont speak turkish much:)
but there is no turkish code,explanations there.
anyway the problem as i undenstand is there is a field datatype datetime but maybe it is null maybe it is like this "0000-00-00"
but the function gives me error.

but in soapUI4.5.1, it works.
there should be a reason. i just wanna ask about is there a code to pass this error to continue from next row.
thank you...


RE: wsdl problem

Quote (baran121)

is there a code to pass this error to continue from next row.
Yes, a try-catch block:

CODE -->

try
{
  res = new ZARGE_SEND_CHAR_MAT_SALEResponse();
}
catch{} 

If the line now throws an error, it will simply continue. It's comparable to VB's "On Error Resume Next".

“Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.” (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: wsdl problem

(OP)
the problem is date data was "0000-00-00" we changed it to "9999-01-01"
now it is working thanks.

RE: wsdl problem

(OP)
but now i have another problem below,

Sum sumClnt = new Sum();
ZARGE_SEND_CHAR_MAT_SALEResponse res;

sumClnt.Credentials = new NetworkCredential(sapuser, sappass);

Error 1 The type or namespace name 'Sum' could not be found (are you missing a using directive or an assembly reference?) C:\Users\zamah\Desktop\ArgemasWebServiceSamples\ArgemasWebServiceSamples\ArgemasWebServiceSamples\Program.cs 76 17 ArgemasWebServiceSamples

can you help me please?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close