This is a bit of an odd one. Hate when my workaround doesn’t work I have a SOAP envelope I created and confirmed through SoapUI that it is a valid envelop and works with the server. However, when I use the following code to send it, both www.text and www.error hold absolutely nothing. It’s something I extracted and modified from the SoapObject code posted some time back:
private SoapTree RequestSync(string envelope, float timeout)
{
Debug.Log("Start Sync URL request: " + Time.time.ToString() + " seconds");
WWW www = new WWW(Url, System.Text.Encoding.UTF8.GetBytes(envelope));
float stop = Time.time + timeout;
while ((!www.isDone) (stop > Time.time))
{
StartCoroutine(IEWaitaSec(www, stop));
}
if (www.isDone)
{
if (www.error != "")
{
Debug.Log("[Status]");
Debug.Log("Error=Ok");
}
else
{
Debug.Log("[Status]");
Debug.Log("Error=" + www.error);
}
}
else
{
Debug.Log("[Status]");
Debug.Log("Timeout=" + stop);
return new SoapTree();
}
}
As mentioned, if I drop the envelope(string) that it attempts to send into SoapUI, the request goes right through with the expected data returned. Anyone know why? Starting to think it’s a hitch in the WWW method itself to go with the absence of the IExtensibleDataObject that made me have to take this route in the first place.
Not sure if it matters, but I am using a Mac with the most recent version of Unity installed.
EDIT: Almost forgot to mention that I had a tech on the phone when I sent it and he didn’t detect it even hitting the server even though if I simply remove the data for a straight request it returns the info to make the web page.