Click here to Skip to main content
15,913,773 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHTTP Handler Pin
snouto5-Jan-11 22:24
snouto5-Jan-11 22:24 
AnswerRe: HTTP Handler Pin
Sandesh M Patil7-Jan-11 1:25
Sandesh M Patil7-Jan-11 1:25 
GeneralRe: HTTP Handler Pin
Not Active7-Jan-11 2:32
mentorNot Active7-Jan-11 2:32 
GeneralRe: HTTP Handler Pin
Sandesh M Patil7-Jan-11 2:57
Sandesh M Patil7-Jan-11 2:57 
GeneralRe: HTTP Handler Pin
snouto8-Jan-11 18:04
snouto8-Jan-11 18:04 
QuestionBring to front Pin
C#Coudou5-Jan-11 15:10
C#Coudou5-Jan-11 15:10 
AnswerRe: Bring to front Pin
GlobX5-Jan-11 15:26
GlobX5-Jan-11 15:26 
QuestionWCF Service Exception Pin
indian1435-Jan-11 11:32
indian1435-Jan-11 11:32 
hi All,

My Data Access Layer trying to execute a service contract cerated by me which is inturn connecting other external web service. Its giving me the following exception.
Can anybody help me how to sort it out please.

Message "The remote server returned an error: (415) Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.." string

I have create the biding as below and
       private ICreateNewHireWorkflowState GetWorkflowStateWcfServiceClient(string endPointAddress)
        {
            BasicHttpBinding binding = new BasicHttpBinding();
            EndpointAddress endpointAddress = new EndpointAddress(endPointAddress);

            _createNewHireWorkflowStateWcfClient =
                ChannelFactory<ICreateNewHireWorkflowState>.CreateChannel(binding, endpointAddress);
            //}

            return _createNewHireWorkflowStateWcfClient;
        }


And posting this meesage to post in to the other web service

        private string CreatePostXmlString()
        {
            StringBuilder retString = new StringBuilder();

            retString.Append(
                "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">  <s:Header>    <Action s:mustUnderstand=\"1\"      xmlns=\"http://schemas.microsoft.com/ws/2005/05/addressing/none\">      http://tempuri.org/IService/MyOperation</Action>    
<ActivityId CorrelationId=\"b898336e-d4e2-4eb7-a2c7-1e23f4630646\"");

            retString.Append(
                "xmlns=\"http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics\">      43ffa660-a0c6-4249-bb36-648b73a06213</ActivityId></s:Header>  <s:Body>    <StatusUpdate><CompanyCandidateCode>12345</CompanyCandidateCode><Password>1y7UV5%9</Password><OrderStatus>SAMPLE</OrderStatus><StatusString>SAMPLE</StatusString></StatusUpdate>  </s:Body></s:Envelope>");

            return retString.ToString();
        }


Can anybody please help me in this, is it because of the xml that I am passing what could be the reason.
Thanks & Regards,

Md. Abdul Aleem
NIIT technologies

AnswerRe: WCF Service Exception Pin
GlobX5-Jan-11 15:32
GlobX5-Jan-11 15:32 
GeneralRe: WCF Service Exception Pin
indian1435-Jan-11 16:25
indian1435-Jan-11 16:25 
AnswerRe: WCF Service Exception Pin
GlobX5-Jan-11 16:35
GlobX5-Jan-11 16:35 
QuestionASP.NET Visual Studio.NET 2010 Pin
Nino_14-Jan-11 19:36
Nino_14-Jan-11 19:36 
AnswerRe: ASP.NET Visual Studio.NET 2010 Pin
Hiren solanki4-Jan-11 19:45
Hiren solanki4-Jan-11 19:45 
AnswerRe: ASP.NET Visual Studio.NET 2010 Pin
Keith Barrow4-Jan-11 20:55
professionalKeith Barrow4-Jan-11 20:55 
AnswerRe: ASP.NET Visual Studio.NET 2010 Pin
Abhijit Jana4-Jan-11 21:29
professionalAbhijit Jana4-Jan-11 21:29 
AnswerRe: ASP.NET Visual Studio.NET 2010 Pin
Nino_16-Jan-11 10:00
Nino_16-Jan-11 10:00 
Questionhow can i upload video or audio file into database? Pin
hassanmorsy4-Jan-11 12:30
hassanmorsy4-Jan-11 12:30 
AnswerRe: how can i upload video or audio file into database? Pin
Not Active4-Jan-11 12:40
mentorNot Active4-Jan-11 12:40 
QuestionHow can I display a pop-up when hovering over a Gridview row? Pin
JTRizos4-Jan-11 6:50
JTRizos4-Jan-11 6:50 
AnswerRe: How can I display a pop-up when hovering over a Gridview row? Pin
Not Active4-Jan-11 8:05
mentorNot Active4-Jan-11 8:05 
GeneralRe: How can I display a pop-up when hovering over a Gridview row? Pin
JTRizos4-Jan-11 9:33
JTRizos4-Jan-11 9:33 
GeneralRe: How can I display a pop-up when hovering over a Gridview row? Pin
Not Active4-Jan-11 9:56
mentorNot Active4-Jan-11 9:56 
GeneralRe: How can I display a pop-up when hovering over a Gridview row? Pin
JTRizos4-Jan-11 11:00
JTRizos4-Jan-11 11:00 
GeneralRe: How can I display a pop-up when hovering over a Gridview row? Pin
Parwej Ahamad4-Jan-11 9:59
professionalParwej Ahamad4-Jan-11 9:59 
GeneralRe: How can I display a pop-up when hovering over a Gridview row? Pin
JTRizos12-Jan-11 6:25
JTRizos12-Jan-11 6:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.