I can browse to the urls for both my proxy webservice and my actual webservice and I am missing one method between my proxy service and my actual account service?
I've tried a lot of things and cannot get my proxy to show the same methods. I don't know how to generate the wsdl file that maps the methods and I can even see the file is missing the method and the file is a file from TFS that I downloaded to build my website on the first day I started working here.
I'm trying to change the generated file by hand but its not working. When I do a find on my computer for svcutil or wsdl it comes up with nothing. Is there a special computer I need to be able to run these utilities?
Server Error in '/' Application.
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://account.hse.org/GetUserNameByMembershipId.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://account.hse.org/GetUserNameByMembershipId.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Source Error:
Line 197: public string GetUserNameByMembershipId(int membershipID)
Line 198: {
Line 199: object[] results = this.Invoke("GetUserNameByMembershipId", new object[] {
Line 200: membershipID});
Line 201: return ((string)(results[0]));
Source File: c:\TFS\IT\Web\HseStore.org\HseStore\Hse.Sso.Client\Proxies\AuthServiceProxy.cs Line: 199
Stack Trace:
[SoapException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://account.hse.org/GetUserNameByMembershipId.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +503338
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +215
Vfw.Sso.Client.Proxies.AuthServiceProxy.GetUserNameByMembershipId(Int32 membershipID) in c:\TFS\IT\Web\HseStore.org\HseStore\Hse.Sso.Client\Proxies\AuthServiceProxy.cs:199
Vfw.Sso.Client.Helpers.AuthServiceHelper.GetUserNameByMembershipId(Int32 membershipID) in c:\TFS\IT\Web\HseStore.org\HseStore\Hse.Sso.Client\Helpers\AuthServiceHelper.cs:103
OMS.CreateAccount.btnCreateAccount_Click(Object sender, EventArgs e) in c:\TFS\IT\Web\MAIN\OMSDomain\OMS\CreateAccount.aspx.cs:63
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +124
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
are you using Visual Studio?
an easy way to regenerate the proxy is to remove the service reference and re-add it.
If you need to generate the proxy manually then you need svcutil and this link will tell you how to get it : https://msdn.microsoft.com/en-us/library/aa347733%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
In short, you need the Windows Sdk and then you can find svcutil at this path : C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin
Related
I am having trouble deleting tags on existing key.
SDK Version : compile('software.amazon.awssdk:s3:2.17.2')
Java version : 1.8
Error : software.amazon.awssdk.services.s3.model.S3Exception: You must provide the Content-Length HTTP header.
Code snippet:
DeleteObjectTaggingRequest deleteObjectTaggingRequest = DeleteObjectTaggingRequest.builder()
.bucket(bucketName)
.key(key)
.build();
s3Client.deleteObjectTagging(deleteObjectTaggingRequest);
Stack trace:
2021-07-22 17:12:46.365 ERROR 13564 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is software.amazon.awssdk.services.s3.model.S3Exception: You must provide the Content-Length HTTP header. (Service: S3, Status Code: 411, Request ID: 1626991966461970, Extended Request ID: 12789133)] with root cause
software.amazon.awssdk.services.s3.model.S3Exception: You must provide the Content-Length HTTP header. (Service: S3, Status Code: 411, Request ID: , Extended Request ID: )
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleErrorResponse(AwsXmlPredicatedResponseHandler.java:156) ~[aws-xml-protocol-2.17.2.jar:na]
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleResponse(AwsXmlPredicatedResponseHandler.java:106) ~[aws-xml-protocol-2.17.2.jar:na]
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:84) ~[aws-xml-protocol-2.17.2.jar:na]
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:42) ~[aws-xml-protocol-2.17.2.jar:na]
Any help on this would be greatly appreciated. Thank you
After performing Vera code scan on my code, a flaw was reported saying " Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting - CWE ID 113') on the below code.
public void writeCookies() {
for (final Cookie cookie : cookies) {
super.addCookie(cookie);
}
The flaw code reported is super.addCookie(cookie). To fix this I added below code
public void writeCookies() {
for (final Cookie cookie : cookies) {
cookie.setSecure(true);
ESAPI.httpUtilities().addCookie(((HttpServletResponse)super.getResponse()),cookie);
}
}
Now the Veracode scan doesn't report any flaw in the code. However, while running the application, I get NoClassDefFoundError as below
Error Message: javax.servlet.ServletException:
java.lang.NoClassDefFoundError:
org.apache.commons.fileupload.FileItemFactory Error Code: 500 Target
Servlet: com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor
Error Stack: java.lang.NoClassDefFoundError:
org.apache.commons.fileupload.FileItemFactory
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:171)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:180)
at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:74)
at org.owasp.esapi.ESAPI.httpUtilities(ESAPI.java:121)
My ESAPI.properties file is at location src/main/resources/ESAPI.properties
The content of ESAPI.properties file is
*
Encoder.AllowMultipleEncoding=false Encoder.AllowMixedEncoding=false
Encoder.DefaultCodecList=HTMLEntityCodec,PercentCodec,JavaScriptCodec
ESAPI.HTTPUtilities=org.owasp.esapi.reference.DefaultHTTPUtilities
*
Please suggest me on how to fix this NoClassDefFoundError...
We get this error about 2 weeks and working resolve but still can't solved !
Do you have any idea about this problem ?
Error Detail;
System.Net.WebException: Unable to read data from the transport connection.System.Net.Sockets.SocketException: Unknown error (0x0).
at System.Net.HttpWebRequest.fillBuffer(HttpWebRequest request, Connection connection, CoreResponseData data)
at System.Net.HttpWebRequest.getLine(HttpWebRequest request, Connection connection, CoreResponseData data)
at System.Net.HttpWebRequest.parseResponse(HttpWebRequest request, Connection connection, Boolean defaultKeepAlive)
at System.Net.HttpWebRequest.startReceiving(Connection connection)
at System.Net.Connection.startReceiving(Object ignored)
at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult)
We are using AWS SES to send Emails from our C# application. We have an attachment(PDF File) of size 9.28MB and when we try to send the Email with the attachment, it throws the following exception:
System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at Amazon.Runtime.Internal.Transform.UnmarshallerContext.Read() at Amazon.Runtime.Internal.Transform.ErrorResponseUnmarshaller.Unmarshall(UnmarshallerContext context) at Amazon.SimpleEmail.Model.Transform.SendRawEmailResponseUnmarshaller.UnmarshallException(UnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) at Amazon.Runtime.AmazonWebServiceClient.processWebException[X,Y](String requestName, WebException we, HttpWebRequest webRequest, IResponseUnmarshaller`2 unmarshaller, IRequest`1 request, Int32 retries) at Amazon.Runtime.AmazonWebServiceClient.Invoke[X,Y](IRequest`1 request, AbstractAWSSigner signer, IResponseUnmarshaller`2 unmarshaller) at Amazon.SimpleEmail.AmazonSimpleEmailServiceClient.SendRawEmail(SendRawEmailRequest sendRawEmailRequest) at MyApp.AmazonSESWrapper.SendRawEmail(String awsAccessKey, String awsSecretKey, List`1 to, List`1 cc, List`1 bcc, String senderEmailAddress, String replyToEmailAddress, String subject, String body, String text, String filePath, String exceptionDetails)
But when we send a 7.50MB word document as attachment, we are getting the following exception:
Amazon.SimpleEmail.AmazonSimpleEmailServiceException: Message length is more than 10485760 bytes long: '10788624'. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.GetResponse() at Amazon.Runtime.AmazonWebServiceClient.Invoke[X,Y](IRequest`1 request, AbstractAWSSigner signer, IResponseUnmarshaller`2 unmarshaller) --- End of inner exception stack trace --- at Amazon.Runtime.AmazonWebServiceClient.processWebException[X,Y](String requestName, WebException we, HttpWebRequest webRequest, IResponseUnmarshaller`2 unmarshaller, IRequest`1 request, Int32 retries) at Amazon.Runtime.AmazonWebServiceClient.Invoke[X,Y](IRequest`1 request, AbstractAWSSigner signer, IResponseUnmarshaller`2 unmarshaller) at Amazon.SimpleEmail.AmazonSimpleEmailServiceClient.SendRawEmail(SendRawEmailRequest sendRawEmailRequest) at
From the Discussion Forum and FAQ, it says the maximum attachment size is 10MB, but the error occurs for less than 10MB attachments also.
https://forums.aws.amazon.com/thread.jspa?messageID=346305
http://aws.amazon.com/ses/faqs/#49
Please suggest on this.
There is also overall message size limit, which is also 10M. As per http://aws.amazon.com/ses/faqs/:
Amazon SES will accept email messages up to 10 MB in size. This
includes any attachments that are part of the message.
So you have to ensure your request fits in these limits.
(I personally think its a bug that Amazon API throws "XmlException: Root element is missing." in case when the message size considerably exceeded the limit. It's totally misleading.)
After I install the Telligent Connect package in the Sitecore installation of JetStream demo site it started getting runtime error when opening the JetStream site or Sitecore Admin. From the Sitecore logs using Sitecore Log Analyser it shows below error message frequently in the logs.
PS: Logs location I refer is C:\inetpub\wwwroot\JSTDemo\Data\logs
I have Sitecore 6.6 and Telligent 7.0 version setups. Also while installing the Telligent Connect the package it asked to replace the Ninject.dll I had refused to replace the file (if that affects something).
I have setup the Telligent Community Site and JetStream in same local environment and both were working fine individually but after installing Telligent Connect it has collapsed the Sitecore Jetstream site.
I have been trying to integrate the both since two days with many Fresh (cleaned up) attempts but no success after the Telligent Connect package installation.
I am newbie in Sitecore world. Any help or hint would be appreciated.
5588 13:46:00 03.05.2013 ERROR The service isn't online. Exception:
System.Net.WebException Message: The request failed with HTTP status
417: Expectation failed. Source: System.Web.Services at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
CRMSecurityProvider.crm4.discoveryservice.CrmDiscoveryService.Execute(Request
Request) at
CRMSecurityProvider.Service.CrmTicketManager.GetSPLATicket(AuthenticationType
authType, String url, String login, String password, String
organizationName) at
CRMSecurityProvider.Service.CrmTicketManager.GetTicket(String url,
String login, String password, String organizationName,
AuthenticationType authType, String partner, String environment) at
CRMSecurityProvider.crm4.webservice.CrmService.GetActive(ConfigurationSettings
settings)
5588 13:46:01 03.05.2013 ERROR The service isn't online. Exception:
System.NullReferenceException Message: Object reference not set to an
instance of an object. Source: CRMSecurityProvider at
CRMSecurityProvider.crm4.webservice.CrmService.GetActiveMetadata(ConfigurationSettings
settings)
5588 13:46:02 03.05.2013 ERROR The CRM provider couldn't be
initialized: The request failed with HTTP status 417: Expectation
failed.
There is one more error occuring
ManagedPoolThread #1 13:38:44 03.05.2013 ERROR Error committing data
row Visits.4c1cda28-1d8b-4365-aebb-30e1bed1d1ec : The UPDATE statement
conflicted with the FOREIGN KEY constraint "FK_Visits_Locations". The
conflict occurred in database "JSTDemoJetstream_Analytics", table
"dbo.Locations", column 'LocationId'. The statement has been
terminated.
And a Warning message
ManagedPoolThread #1 13:38:44 03.05.2013 WARN Errors while
committing data. Retrying... System.Exception: Error committing
datatable: Visits ---> System.Exception: Commit error: The UPDATE
statement conflicted with the FOREIGN KEY constraint
"FK_Visits_Locations". The conflict occurred in database
"JSTDemoJetstream_Analytics", table "dbo.Locations", column
'LocationId'. The statement has been terminated.
at
Sitecore.Analytics.Data.DataAccess.DataAdapters.Sql.SqlDataAdapterProvider.Update(DataTable
table, UpdateOptions options) at
Sitecore.Analytics.Data.DataAccess.DataAdapters.Sql.SqlDataAdapterProvider.Update(DataTable
table) at
Sitecore.Analytics.Data.DataAccess.DataAdapters.Sql.SqlDataAdapterProvider.Update(DataSet
dataSet)
--- End of inner exception stack trace --- at Sitecore.Analytics.Data.DataAccess.DataAdapters.Sql.SqlDataAdapterProvider.Update(DataSet
dataSet) at
Sitecore.Analytics.Data.DataAccess.DataAdapters.DataAdapterManager.Update(DataSet
dataSet) at
Sitecore.Analytics.Pipelines.CommitDataSet.CommitAnalytics.Process(CommitDataSetArgs
args) at (Object , Object[] ) at
Sitecore.Pipelines.PipelineMethod.Invoke(Object[] parameters) at
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at
Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs
args, String pipelineDomain, Boolean failIfNotExists) at
Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs
args, String pipelineDomain) at
Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs
args) at Sitecore.Analytics.Data.TrackerChanges.Flush()
Also If that affects I have enabled the Telligent Analytics,
<add name="JavascriptAnalyticsHttpModule" type="Telligent.Evolution.ExtendedAnalytics.JavascriptAnalyticsHttpModule, Telligent.Evolution.ExtendedAnalytics" />
and
<add verb="GET" name="analytics" path="analytics.ashx" type="Telligent.Evolution.ExtendedAnalytics.ExtendedAnalyticsRequestHandler, Telligent.Evolution.ExtendedAnalytics" />
<add verb="GET" name="analyticsUrls" path="/utility/analytics/router.aspx" type="Telligent.Evolution.AnalyticsUrls.Http.AnalyticsUrlHttpHandler, Telligent.Evolution.AnalyticsUrls" />
UPDATE
After I disabled the config for Telligent located at \App_Config\Include\TelligentEvolution.config the sitecore site is up and running. So it seems the Telligent part is creating issues..