Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wsdl problem

Status
Not open for further replies.

baran121

Programmer
Sep 8, 2005
337
0
0
TR
Hi everyone,
i have a problem about wsdl, when i call a function to get xml i got following error.
thank about your advice.

UVJoSmIvcGswMEc5TE1UQw
 
baran121 said:
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.
 

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);
 
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)

 
thank you.
actually when i click the link i can get big size of picture. and it is understandable.
 
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.
 
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.
 
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.
 
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...


 
baran121 said:
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.
 
the problem is date data was "0000-00-00" we changed it to "9999-01-01"
now it is working thanks.
 
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top