Question : How to figure out input value passed via XML

I hope an expert can help me out. I have probably spent too much time trying to figure this out on my
own, so I need some help. Part of me feels ashamed for having to ask for help on this, but I am stuck.

Basically I have an XSD for a web service. I am able to access the web service through
a test program and to send in test data with an actual XML document with nodes populated with data. My problem is
that I do not know how to pass in data for one of the input parameters. Look at my portion of the XSD file below where
it defines an input parameter named "CityAndCountry". I cant figure this out. Is it expecting a City name followed by a country
name? I tried passing in the following 3 different combinations seperately, but the code fails with a non descriptive error:
MiamiFlorida
Miami,Forida
MiamiAndFlorida

So basically what I am saying is that I don't know how they want me to pass in the input parameter "CityAndCountry"
The C# code that processes the XML is so convoluted that I cannot even trace into it and the developer who wrote it
left the company. Does anyone have any ideas on how I can figure out how CityAndCountry should be passed in?

<xs:element name="City">
<xs:annotation>
  <xs:documentation>International City</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CityAndCountry">
<xs:annotation>
  <xs:documentation>International City with Country serviced</xs:documentation>
</xs:annotation>
</xs:element>

Answer : How to figure out input value passed via XML

It is one of 2 things:

1. When you go there directly there, no $_GET is established. $_GET['p'] will probably be equal to NULL, NOT "" and therefore it goes through your final else statement that outputs no image.

Or 2. If the code above is correct, you have 2 elseif statements for $_GET['p'] = "" and the first one doesn't do anything and will be the only one that fires. Remove it and the above code might work...
Random Solutions  
 
programming4us programming4us