WebService request whitespace trim

I have found that when invoking a WebService at runtime the
space at the end of a string in a request gets trimmed. This there
anyway this can be avoided?
Here's some code snippets...
<mx:WebService id="trimTestWS" wsdl="TrimTest?WSDL">
<mx:operation name="trimtest" resultFormat="e4x"
fault="faultHandler(event)" result="resultHandler(event)" />
</mx:WebService>
<mx:Script>
<![CDATA[
private function init():void {
trimTestWS.trimtest.request.data = "ABC ";
trimTestWS.trimtest.send();
I have found with the above that the XML sent from from flash
player has <data>ABC</data> rather than the expected
<data>ABC </data>. Is there someway I can preserve the
space?
Thanks in advance.

"soastation" <[email protected]> wrote in
message
news:ga3h3k$473$[email protected]..
>I have found that when invoking a WebService at runtime
the space at the
>end of
> a string in a request gets trimmed. This there anyway
this can be avoided?
>
> Here's some code snippets...
>
> <mx:WebService id="trimTestWS"
wsdl="TrimTest?WSDL">
> <mx:operation name="trimtest" resultFormat="e4x"
> fault="faultHandler(event)"
result="resultHandler(event)" />
> </mx:WebService>
>
> <mx:Script>
> <![CDATA[
> private function init():void {
> trimTestWS.trimtest.request.data = "ABC ";
> trimTestWS.trimtest.send();
> }
>
> I have found with the above that the XML sent from from
flash player has
> <data>ABC</data> rather than the expected
<data>ABC </data>. Is there
> someway I
> can preserve the space?
Look at the prettyPrinting and ignoreWhiteSpace properties of
the XML
object.

Similar Messages

  • Trace a webservice request to a remote server

    Hi!
    I'm looking for a way to trace an outgoing webservice request and its response with WebAS 7.0 (Java only). There is plenty of information available to trace requests to the WebAS itself, but I couldn't find anything if the target system is remote and the WebAS is only the client.
    At the moment, I'm working on a StandaloneClientProxy that failes to request a Webservice, as the returned content type is text/html. All I want is to see is what exactly is returned by the service (login page, error page, ...).
    Best regards,
    Frank

    Hello!
    Maybe it would help using the wsnavigator-Test-Tool? There you can see the returned SOAP. It can be fount under <host>:50000/wsnavigator on web as.
    Otherwise there are some proprietary tools for distributed systems like:
    Introscope (Full version - not in read only mode like it is offered in the SAP licence)
    Dynatrace
    There you can monitor connections over the whole network.

  • Set cookie in webservice request

    Hi,
    Is there a way to set a cookie in a webservice request or include the HttpCookie in the service call ? Basically I am using Axis on client side to call a .NET webservice on a remote server and need to pass user data to the service in a cookie.
    Thanks
    NK

    Hi Santhiyaraman,
    Webview control is in windows phone 8.1 runtime app, in windows phone 8 is webbrowser control.
    Webbrowser control does not provide some properties or methods to add custom cookie, but we can do this using the javascript. Code snippet looks like the following.
    private void setCookie(string name, string value, string path = "", string domain = "", bool isSecure=false, string expires = "")
    var sb = new StringBuilder();
    sb.AppendFormat("document.cookie = '{0}=\" + escape(\"{1}\")", name, value);
    if (!String.IsNullOrEmpty(expires))
    sb.AppendFormat(";expires=\"{0}\"", expires); // should be a GMTString
    if (!String.IsNullOrEmpty(path))
    sb.AppendFormat(";path=\"{0}\"", path);
    if (!String.IsNullOrEmpty(domain))
    sb.AppendFormat(";domain=\"{0}\"", domain);
    if (isSecure)
    sb.Append(";secure'");
    var cookieJs = sb.ToString();
    Debug.WriteLine(cookieJs);
    webBrowser.InvokeScript(cookieJs);
    You can find more information about it from
    http://stackoverflow.com/questions/13287409/windows-phone-webbrowser-set-cookies.
    Please try and let me know the result.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • XML Namespace in WebService Request/Response

    Hi all,
    I have a question regarding xml namespace usage in wsdl and the corresponding request/response messages.
    I have already browsed quite some articles about xml namespaces as well as some forum threads, but I am still not sure.
    I have the following part of a wsdl document (generated by Integration Directory), defining a targetnamespace.
    u2026
    <wsdl:types>
        <xsd:schema targetNamespace="http://www.dorma.com/sap/xi/finance"
                             xmlns="http://www.dorma.com/sap/xi/finance"
                             xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:element name="DebtorGetDetailResponse" type="Z_BAPI_DEBTOR_GETDETAIL_Response"></xsd:element>
            u2026
            <xsd:complexType name="Z_BAPI_DEBTOR_GETDETAIL_Response">
                <xsd:sequence>
                    <xsd:element name="DEBITOR_COMPANY_DETAIL" type="BAPI1007_5" minOccurs="0">
                    </xsd:element> u2026
                </xsd:sequence>
            </xsd:complexType>
            u2026
        </xsd:schema>
        u2026
    </wsdl:types>
    u2026
    In my understanding, all types defined in the schema section of a wsdl document will be in the targetnamespace, if defined.
    Therefore the element DEBITOR_COMPANY_DETAIL would be in the namesapce
    http://www.dorma.com/sap/xi/finance
    However, the ABAP proxy generates a response message like follows,
    where only the root element is in this namespace and the child elements are in the global namespace:
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:DebtorGetDetailResponse xmlns:ns1="http://www.dorma.com/sap/xi/finance"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <DEBITOR_COMPANY_DETAIL>
            u2026
        </DEBITOR_COMPANY_DETAIL>
        u2026
    </ns1:DebtorGetDetailResponse>
    Do I have a wrong understand of the wsdl (xml schema) or is this an erroneous behavior?
    The problem is that some 3rd-party software web service module does not accept
    the response message as not complient with the respective wsdl document.
    Any input is appreciated.
    Thanks
    Hans
    Edited by: Hans-Jürgen Schwippert on Oct 1, 2008 12:02 PM

    I have the same problem. I am trying to connect to a webservice running on IBM websphere but it doesn't accept the xml in my request. It appears to be the same namespace issue.
    Did you ever find a solution for this?
    Is it a valid webservice call if you omit the namespace for an element or is this a bug in the Adaptive WS implementation?
    Web Dynpro web service model generated request:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
    <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
    <enableSession>true</enableSession>
    </sapsess:Session>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    look between these lines -
    <ns1:tamKontrolleraKontoLastAnrop xmlns:ns1="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
    <AnvandarNamn>30039647</AnvandarNamn>
    </ns1:tamKontrolleraKontoLastAnrop>
    look between these lines -
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    As you can see the tag
    <AnvandarNamn>30039647</AnvandarNamn>
    is missing a namespace.
    It should be
    <ns1:AnvandarNamn>30039647</ns1:AnvandarNamn>
    Using a third part tool called Soapui i generate this request that works:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tam="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
       <soapenv:Header/>
       <soapenv:Body>
          <tam:tamKontrolleraKontoLastAnrop>
             <tam:AnvandarNamn>30039647</tam:AnvandarNamn>
          </tam:tamKontrolleraKontoLastAnrop>
       </soapenv:Body>
    </soapenv:Envelope>

  • Help with webservice request

    I am trying to use an internal WSDL in which some of the
    attributes have a . in the name. For example"
    <xsd:attribute name="DT.RCVD" use="optional">
    <xsd:simpleType>
    <xsd:restriction base ="xsd:string">
    <xsd:maxLength value = "8" />
    <xsd:minLength value = "8" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:attribute>
    I can't seem to use this in the request section as it throws
    an error in compiling.
    Does anyone know a way to handle these types of WSDL's? I
    have used them before and everything works great as long as there
    isn't a dot(.) in the attribute name.
    Thanks.
    Matt

    "TransoniqHacker" <[email protected]> wrote
    in message
    news:go9qie$qqc$[email protected]..
    > Thanks for the response...
    >
    > I don't have trouble getting at the data once it is
    returned, but sending
    > the
    > data. See the code below.
    > When I try and run this code, I get a "syntax error:
    expecting colon
    > before
    > dot." error on the <mx:request> line.
    >
    > Thanks...
    > M
    >
    > <mx:WebService id="userRequest" wsdl="xyz.wsdl">
    > <mx:operation name="UpdateUnsecuredParcel"
    resultFormat="object"
    > fault="defaultFault(event);"
    result="remotingCFCHandler(event)">
    > <mx:request xmlns="">
    > <Batch>4000</Batch>
    > <TaxYear>2009</TaxYear>
    > <Mode>C</Mode>
    > <UserID>90654</UserID>
    > <Fields>
    > <APN>{APN.text}</APN>
    > <ACCT>{Acct.text}</ACCT>
    > <DT.RCVD>{dtReceived.text}</DT.RCVD>
    > </Fields>
    > </mx:request>
    > </mx:operation>
    > </mx:WebService>
    Do it in actionscript.
    var tmpXML:XMLList = <Batch>4000</Batch>
    <TaxYear>2009</TaxYear>
    <Mode>C</Mode>
    <UserID>90654</UserID>
    <Fields>
    <APN>{APN.text}</APN>
    <ACCT>{Acct.text}</ACCT>
    <foo>{dtReceived.text}</foo>
    </Fields>
    node:XMLNode = tmpXML.descendents('foo')[0];
    node.name = 'DT.RCVD';
    userRequest.request = tmpXML;
    HTH;
    Amy

  • Webservice request namespace

    Hi there...
    How can i put a namespace in my request xml in flex. So, my
    going data is:
    <clientRequestwithReturn>
    <MoneyTransferRequest>
    <requestChannel>01</requestChannel>
    <fromAccountNo>0008830006000007</fromAccountNo>
    </MoneyTransferRequest>
    </clientRequestwithReturn>
    But i need to send :
    <xxx:clientRequestwithReturn xmlns:open="
    http://www.xxxxx.org/">
    <yyy:MoneyTransferRequest xmlns:mon="
    http://www.yyyyy.com/">
    <requestChannel>01</requestChannel>
    <fromAccountNo>0008830006000007</fromAccountNo>
    </mon:MoneyTransferRequest>
    </open:clientRequestwithReturn>
    So i need to put namespace info to my request object. How can
    i do it?

    I have the same problem. I am trying to connect to a webservice running on IBM websphere but it doesn't accept the xml in my request. It appears to be the same namespace issue.
    Did you ever find a solution for this?
    Is it a valid webservice call if you omit the namespace for an element or is this a bug in the Adaptive WS implementation?
    Web Dynpro web service model generated request:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
    <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
    <enableSession>true</enableSession>
    </sapsess:Session>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    look between these lines -
    <ns1:tamKontrolleraKontoLastAnrop xmlns:ns1="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
    <AnvandarNamn>30039647</AnvandarNamn>
    </ns1:tamKontrolleraKontoLastAnrop>
    look between these lines -
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    As you can see the tag
    <AnvandarNamn>30039647</AnvandarNamn>
    is missing a namespace.
    It should be
    <ns1:AnvandarNamn>30039647</ns1:AnvandarNamn>
    Using a third part tool called Soapui i generate this request that works:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tam="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
       <soapenv:Header/>
       <soapenv:Body>
          <tam:tamKontrolleraKontoLastAnrop>
             <tam:AnvandarNamn>30039647</tam:AnvandarNamn>
          </tam:tamKontrolleraKontoLastAnrop>
       </soapenv:Body>
    </soapenv:Envelope>

  • How to know the size of a webservice request

    Hello...
    I'd like to know if you know how do I get the size of a Web request? I mean, I need to know the size of a Web Request 'cause I'll fill a Gauge Object up based on the quantity that I have received from the WebService.
    I'm using the KSOAP and KXML API's for consuming that WebServices and I used the Content-lengh Method and it didnt return anything to me... it returned empty. So, do you know how do I fill a Gauge Object based on the size of the WebRequest? Could you tell me some examples plz?
    Thanx...
    Lucas Abrao

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • ContentType in HTTP Header issue while sending webservice request

    I have a client application deployed on weblogic10.3.4 which access a remote web application (on websphere5.1).
    The soap request fails because WebSphere5.1 does not accept double quote around utf-8 in ContentType header of HTTP.
    e.g:
    Content-Type: text/xml;charset=utf-8 is valid
    Content-Type: text/xml;charset="utf-8" is not valid
    This can be fixed on glassfish by upgrading metro library.
    But how can I fix this problems on weblogic server?
    I found weblogic8.1 doc which says this issue has been fixed (CR198996), but why does it still exist on 10.3.4?
    Any suggestions would be appreciate.

    Hi _MiRichter,
    Well Done!
    Thank you very much for sharing the solution to us.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Add SOAP header before the WebService request (Windows Forms)

    I have to add this header before my Request:
    <h:FordDealerIdentity xmlns:h="urn:ford/star/security/v1.0" xmlns="urn:ford/star/security/v1.0">
    <soapenv:Header>
    <SiteCode>SZBRA</SiteCode>
    </soapenv:Header>
    </h:FordDealerIdentity>
    My request:
    var srv = new ConsumerServiceScheduleV1();
    var a = new RetrieveScheduleRequestType();
    var b = new DealerType();
    var c = new ScheduleType();
    srv.Credentials = new System.Net.NetworkCredential("","SZBRA05168");
    //ScheduleType[] ret;
    b.Code = 05168;
    b.Name = "BraconCampos";
    a.Dealer = b;
    a.SchedulingFrom = new DateTime(10/10/2014);
    a.SchedulingTo = new DateTime(15/10/2015);
    c.SchedulingCategory = SchedulingCategoryType.Regular;
    srv.ClientCertificates.Add(new System.Security.Cryptography.X509Certificates.X509Certificate2(@"E:\Agenda Ford\Certificados Agend@Ford\BracomCampos.pfx", "qaz123"));
    textBox1.Text = srv.RetrieveSchedule(a).ToString();

    Is Windows Forms! :)
    And what forum deals with SOAP and Web services more than any other forum?  Many types of client based applications such as  Windows form, WPF, Sliverlight, Windows service classlib project like a BLL and so forth deal sith SOAP and WEB.
    How is what you are talking about a Windows forms issue?
    My Application is Windows Forms. I need to know how to insert this header before request.

  • WebService / request

    New to Flex so apologies if this is a simple problem. I'm
    trying to connect to a web service but for reasons I'm not entirely
    sure of, the service only responds if an empty XML "structure" is
    passed. i.e.
    <InvoiceDetail>
    <item>
    <Crtby></Crtby>
    <Crtdt></Crtdt>
    <Crttm></Crttm>
    <Updby></Updby>
    <Upddt></Upddt>
    <Updtm></Updtm>
    <Otype></Otype>
    <Objid></Objid>
    </item>
    </InvoiceDetail>
    When I insert this into an mx:request tag, Flex insists on
    sending <Crtby>[Object Object]</Crtby> in the request.
    Any ideas how I can persuade Flex to send the string as
    is....
    Thanks
    Peter

    Use AS code to build and send the request, it is easier to
    debug.
    var xmlRequest:XML = <InvoiceDetail>
    ...</InvoiceDetail>;
    myWebServiceId.request = xmlRequest;
    myWebServiceId.send();
    Tracy

  • "User not found" error through SOAP webservice request AddGroup.asmx

    Hi there,
    With the help of NINTEX Im trying to create a new group via the webservice:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
    <soap:Header>
    </soap:Header>
    <soap:Body>
    <m:AddGroup>
    <m:groupName>TestGroup</m:groupName>
    <m:ownerIdentifier>mydomain/user</m:ownerIdentifier>
    <m:ownerType>user</m:ownerType>
    <m:defaultUserLoginName>mydomain/user</m:defaultUserLoginName>
    <m:description>
    </m:description>
    </m:AddGroup>
    </soap:Body>
    </soap:Envelope>
    I keep getting a user not found. I tried the same approche in a SharePoint 2010 environment and there it works just fine. 
    I tried changing the username to i0#.w|mydomain/user, after reading an article HOW TO: Add users to SharePoint Groups using SharePoint 2013 UserGroup.asmx Web Service on blogs.technet.com
    Does anyone has an idea what the problem could be?

    Hi,
    From your description, an error occurred when you create a new group via the web service in SharePoint 2013.
    Please use “\” instead of “/”, for example: use “i0#.w|mydomain\user” instead of “i0#.w|mydomain/user”.
    Here are two other ways to create a new group for your reference:
    1. Use SPServices.
    http://spservices.codeplex.com/wikipage?title=Users%20and%20Groups
    2. Use ECMA Client object model, the following code for your reference:
    // Create Group
    var groupCreationInfo = new SP.GroupCreationInformation();
    groupCreationInfo.set_title('Collaboration ' + folderName);
    groupCreationInfo.set_description('This is a new Collaboration Group');
    this.oGroup = currentweb.get_siteGroups().add(groupCreationInfo);
    clientContext.load(oGroup);
    oGroup.set_owner(GroupObject);
    oGroup.update();
    Best Regards
    Dennis Guo
    TechNet Community Support

  • BE whitespace trimming

    So I found out that Business Engine considers (RC doesn't)
    "New Scale" = " New Scale" = "New Scale ", with leading and trailing space trimming.
    However does "New    Scale" equal to any of the above?

    Bueheler?

  • Setting up custom headers in webservice request

    Hi,
    I have generated stubs using WSDL2Java (Axis 1.1). The wsdl file contains one custom header.
    Can any one tell me how to set value for this custom header?
    Thanks

    Hi Abhisek,
    If you want to create your own patterns, you can follow this step:
    menu utilities --> more utilities --> edit pattern --> create pattern.
    Type in the code you want to use as a pattern.
    Save it and back out.
    Now once you create it there, you should be able to enter in the "Other Pattern" field.
    Hope it will help you.
    Thanks,
    Sarita Singh Rathour

  • Dynamically add some elements in WebService operation request

    Hi, 
    I have a WebService element defined in my mxml which use to make soap calls. 
    I need to dynamically add some repeating groups for action (dependent on action) in the following example. 
    How can I add this in Action Script section? Can I access the WebService  by id userRequest and specify " 
    userRequest.operations.DoAction.request.DoItemActionRequest.action.requiresAdditionItems.n ameValuePair.name = "SomeName"; 
    userRequest.operations.DoAction.request.DoItemActionRequest.action.requiresAdditionItems.n ameValuePair.name = "SomeValue";  
    <mx:WebService  id="userRequest" wsdl="{Application.application.wsdl}" > 
         <mx:operation name="DoAction" resultFormat="object" 
          fault="faultHandler(event)" 
          result="DoActionHandler(evnt)">
            <mx:request> 
              <DoActionRequest> 
                 <userId>{Application.application.userID}</userId> 
                  <action> 
                     <actionId>{selectedItem.actionId}</actionId> 
                 </action> 
              </DoActionRequest> 
             </mx:request> 
           </mx:operation> 
    </mx:WebService>
    Thanks,
    Amitava

    Hi miguel8312,
    Thanks for your suggestion. I understand the steps you explained for defining, calling and processing the result from a webservice from a MXML body.
    My query is specifically, can I modify the webservice request defination from AS function before making the call?
    In my example, if I need to dynamically add a name value pair for <action> tag (e.g. actionParam ), how do I do that?
    Thanks,
    Amitava

  • SSRS Designer - XML Datasource - Parameter passing XML gets encoded, causes error on WS Request

    Hello,
    I am attempting to query a List from SharePoint using the XML Datasource. I am forced to use this datasource as our infrastructure team will not be upgrading our SSRS 2008 farm to SSRS 2008 R2 anytime soon. 2008 R2 has Native SharePoint
    List Datasources ( which works great FYI ). I already completed the report using the Native SP List DS, only to find out that my timing was not so great as 2008 R2 was not in production yet... /sigh, communication... anyways...
    I have successfully queried the List using the XML Datasource. It is only when I try to use the CAML query in the query parameter that it fails. So, here is my Query:
    <Query>
    <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
    <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
    <Parameters>
    <Parameter Name="listName">
    <DefaultValue>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</DefaultValue>
    </Parameter>
    <Parameter Name="query">
    <DefaultValue>
    <Query>
    <Where>
    <Gt>
    <FieldRef Name="Modified" />
    <Value Type="DateTime">2011-03-01</Value>
    </Gt>
    </Where>
    </Query>
    </DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <ElementPath IgnoreNamespaces="True">*</ElementPath>
    </Query>
    I will be replacing that hard date with something like =DateAdd("d",-7,Now()) later, but focusing on the task at hand...
    Here is the error ( trimmed so you don't need to read the whole stack ):
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring>
    <detail>
    <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element &lt;Query&gt; of parameter query is missing or invalid.</errorstring>
    <errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000000</errorcode>
    </detail>
    </soap:Fault>
    </soap:Body>
    The key to that error is:  Element &lt;Query&gt; of parameter query is missing or invalid.
    So I see that it is being encoded, so I decided to capture the actual Webservice request with Fiddler:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <query>
    &lt;Query&gt;
    &lt;Where&gt;
    &lt;Gt&gt;
    &lt;FieldRef Name="Modified" /&gt;
    &lt;Value Type="DateTime"&gt;2011-03-01&lt;/Value&gt;
    &lt;/Gt&gt;
    &lt;/Where&gt;
    &lt;/Query&gt;
    </query>
    <listName>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</listName>
    </GetListItems>
    </soap:Body>
    </soap:Envelope>
    So now that we know that somehow the XML parameter of "query" is being encoded. How do I tell the SSRS designer that for this XML datasource's dataset query, I do not wish to encode that parameter?  I have searched all day today and came up with
    very little. I found a few posts with a simliar question, but no solution was ever mentioned.
    The closest to a likely solution was this Post :
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8a9ba2fc-26cd-423e-bbbf-a16b5c9722f5/
    in particular this phrase interested me:
    "Query parameters of type Msxml2.DOMDocument30 are passed as XML. Parameters of type String which happen to contain XML are passed as strings and are XML encoded in the SOAP message. The function CXml(String) converts a string
    into an Msxml2.DOMDocument30 and can be used in query parameter expressions."
    Similar to the poster of that question, I also cannot find a way to define the parameter as an XML type or the use of this mysterious CXML() function in the expression builder...
    I'm looking for a Microsoft resource to tell me whats going on here, but if anyone else has a workaround or an idea, I would be happy to try it out.
    Regards,
    -Ryan, Solution Architect

    Hi Ryan,
    Thanks for your question, from your statement, it seems that you want to give a default value for the parameter named query, right? If so I would recommend you achieve this requirement in report level, please follow these:
    1. Create a parameter named Date, select Date/Time as data type.
    2. Move to Default values tab, then click Add button ->type in  =DateAdd("d",-7,Now())  as defult value's expression.
    3. Right-cilck the dataset, and then select DataSet properties.
    4. Move to Filters tab, click add button to add a filter.
    5. In the drop-down list of Expression, select Modified datefield with Date/Time datatype.
    6. Type in =Parameters!Date.Value in value's textbox.
    Similar thread, please get a reference from this
    http://social.technet.microsoft.com/Forums/en-US/sqlreportingservices/thread/24d30b00-139e-4487-9fb1-02f460b432f9
    If you have any question, please feel free to ask.
    Thanks,
    Challen Fu 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • How can I convert an entire excel workbook to pdf?

    How can I convert an entire excel workbook to pdf?  I have the box in the preferences for converting excel files marked to convert the entire workbook.  I am using Abobe Acrobat 11 Statndard.  This previously worked fine when I was using Adboe Acroba

  • Pdf Portfolio Application.........

    Hi Team, Could you please tell me hhow i can develop a Pdf Portfolio solution using Adoble Liberary. I am using .Net and C# to do the same so please tell the exact solution how i can do this. Thank You !!! Regards, Deepak Rai

  • Swf colors rendered diffrent in IE, FF, Opera

    Hi folks, Just changed a header from png image to swf, needed a red blinking "beacon" But strangely the color of the swf renders diffrently in all browsers except safari? Does anyone have a clue? Colorprofile issue in the PSD file maybe? Have tried a

  • Old iPod - converter for Firefire to USB?

    Hey guys, I have an older iPod, one with 5GB of memory and the 6-pin firefire connector on the top. I got a new computer and it doesn't have 6-pin firewire access but has tons of USB ports. Does anybody know of a converter or adaptor that I can put o

  • Reg: PAN number maintain

    Hi Guru, i have to maintain the PAN number for vendor. it can be maintain in J1ID master data that is vendor excise details. is there any other place can i maintain the PAN Details. kindly provide the details. Thanks Best Regards