我一直在通过所有谷歌,stackoverflow等寻求这个问题.我找到了很多相关的答案,但不是真正的解决方案.
我正在从.NET客户端使用Axis服务,但返回始终为null,无论我发送什么参数,始终为null.
所以我开始看,我试图从SOAPUI中使用它,它工作!
所以我的第一个想法是,.NET做错了,我搜索和搜索,我发现命名空间存在一些问题.
相关文章在这里
所以在此之后,我尝试通过服务引用,Web引用使用服务,使用WSDL.EXE创建代理(它创建得非常好!)并查找所有命名空间,但是所有的lokked很好..我做了一些更改它到命名空间但没有.
然后我发现不仅名称空间是问题,也是数组; 实际上服务返回这样的东西.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<InformacionPolizaResponse xmlns="http://www.openuri.org/">
<ns1:Poliza xmlns:ns1="http://www.example.org/PolizasBanorteSchema">
<ns1:Numero>0036887</ns1:Numero>
<ns1:Serie></ns1:Serie>
<ns1:Ramo>00110</ns1:Ramo>
<ns1:Subramo>00110</ns1:Subramo>
<ns1:Inciso></ns1:Inciso>
<ns1:ClaveAgente>000270</ns1:ClaveAgente>
<ns1:NombreAgente>NOMBRE PENDIENTE</ns1:NombreAgente>
<ns1:NumeroOficina></ns1:NumeroOficina>
<ns1:FechaEmision>2011-02-15</ns1:FechaEmision>
<ns1:FechaInicioVigencia>2011-02-15</ns1:FechaInicioVigencia>
<ns1:FechaFinVigencia>2012-02-15</ns1:FechaFinVigencia>
<ns1:Estatus>03</ns1:Estatus>
<ns1:NombreContratante>CARLOS ZARATE JIMENEZ</ns1:NombreContratante>
<ns1:RfcContratante>ZAJC720213K98</ns1:RfcContratante>
<ns1:Telefono>0449626251463</ns1:Telefono>
<ns1:Moneda>1</ns1:Moneda>
<ns1:FormaPago>003</ns1:FormaPago>
<ns1:PrimaPrimerPago>237.84</ns1:PrimaPrimerPago>
<ns1:PrimaPagoSubsecuente>237.84</ns1:PrimaPagoSubsecuente>
<ns1:PrimaNeta>951.36</ns1:PrimaNeta>
<ns1:FinancPagofraccionado></ns1:FinancPagofraccionado>
<ns1:GastosExpedicion>.00</ns1:GastosExpedicion>
<ns1:IVA></ns1:IVA>
<ns1:PrimaTotal></ns1:PrimaTotal>
<ns1:PolizaOrigen>0036887</ns1:PolizaOrigen>
<ns1:PolizaRenueva>0000000</ns1:PolizaRenueva>
<ns1:Producto></ns1:Producto>
<ns1:Plan></ns1:Plan>
<ns1:Asegurados>
<ns1:item>
<ns1:Nombre>CARLOS ZARATE JIMENEZ</ns1:Nombre>
<ns1:Clave></ns1:Clave>
<ns1:Direccion>
<ns1:Calle></ns1:Calle>
<ns1:Colonia></ns1:Colonia>
<ns1:Poblacion></ns1:Poblacion>
<ns1:Estado></ns1:Estado>
<ns1:CP></ns1:CP>
<ns1:Texto></ns1:Texto>
</ns1:Direccion>
<ns1:FechaNacimiento>1972-02-13</ns1:FechaNacimiento>
<ns1:Sexo>1</ns1:Sexo>
<ns1:Fumador>1</ns1:Fumador>
<ns1:Parentesco>0</ns1:Parentesco>
<ns1:AntiguedadDesde></ns1:AntiguedadDesde>
<ns1:Coberturas>
<ns1:item>
<ns1:Clave>00150</ns1:Clave>
<ns1:Seccion></ns1:Seccion>
<ns1:NombreCobertura>SEGURO DE MUERTE ACCIDENTAL</ns1:NombreCobertura>
<ns1:LimiteMaximo>250,000</ns1:LimiteMaximo>
<ns1:Deducible>.00</ns1:Deducible> …Run Code Online (Sandbox Code Playgroud) 我必须下载通过FTP加密的250mb~ZIP文件密码.下载后我必须用一个通用密码解压缩,Zip文件将包含一个1.5GB的MS Access数据库,我必须读取它并与我的数据库Oracle中的某些表进行一些连接,并将该数据转换并加载到该Oracle数据库中.
我正在寻找最好的方法来完成这个过程.我是ac#developer,所以我的第一个想法是使用c#,通过FtpClient或FtpWebRequest下载文件,然后使用像DotNetZip这样的zip库并通过ODBC打开MS Access数据库,并使用ODP将记录加载到Oracle.NEt,我认为这是我的"简单方法",因为我知道该怎么做.
但由于这是一个大文件,我知道这可能需要很长时间,我关注时间和效率以及如何减少这个过程的时间.
所以我认为将所有请求直接处理到oracle(从那里下载FTP,在那里解压缩,并直接在那里处理信息会减少将记录从c#传递到oracle的时间)应该减少这个时间过程,但我不确定这是否是正确的方法.
所以我开始研究来自oracle的图书馆,它可以做我想要的事情,我找到了PLSQL-utils,看起来他们可以做我需要的一切,除了阅读MS Access数据库,我开始寻找并发现在异构服务,但我从来没有使用过,所以我有点失去了这一点.
我也听说过我可以直接从Oracle使用Java,我知道java可以通过JDBC连接到MS Access.所以我搜索了一下,发现了一些关于在Oracle数据库中调用Java方法的内容
这就是我到目前为止所做的,但我不知道应该使用哪种方法,我的意思是,据我所知,RDBMS用于处理数据,但不用于编写下载文件之类的东西,这就是为什么我们有OOP的语言.
作为附加信息,此过程将在一个月内执行一次或两次,因此我必须安排它,如果它在oracle中,可以使用计划作业轻松完成,或者在c#中使用计划任务或Windows服务(那些是我知道的工具)
我有一些限制
说到这一切,如果我使用.net并在Oracle DataBase中按记录加载记录,我怎样才能有效地完成所有这些过程?我应该在甲骨文中做些什么吗?或者这不是吗?有一个更好的方法吗?
我面临着一个奇怪的问题,我对Android和Json很新.我正在使用RESTful WCF来显示像这样的json响应:
{"StatusCode":200,"Message":"","Result":{"Agencies":[],"Areas":[{"id":11,"area_name":"area 10","description":"updated 10","active":true},{"id":12,"area_name":"Area 11","description":"temp 11","active":true},{"id":13,"area_name":"Area 12","description":"temp12","active":true},{"id":14,"area_name":"area 13","description":"temp 13 3","active":true},{"id":7,"area_name":"Area 6","description":"temp6","active":true},{"id":8,"area_name":"area 7","description":"temp7","active":true},{"id":9,"area_name":"area 8","description":"temp 8","active":true},{"id":10,"area_name":"area 9","description":"temp 9","active":true},{"id":1,"area_name":"area1","description":"temp","active":true},{"id":3,"area_name":"area2","description":"temp2","active":true},{"id":4,"area_name":"area3","description":"asdddasdsa","active":true},{"id":5,"area_name":"area4","description":"dasdassad","active":true},{"id":6,"area_name":"area5","description":"temp5","active":true}],"Districts":[{"id":5,"district_name":"District 5","district_code":"1","description":"temp 5","area_id":8,"area_name":"area 7","active":true},{"id":4,"district_name":"district 4","district_code":"2","description":"temp 4","area_id":8,"area_name":"area 7","active":true},{"id":1,"district_name":"district 1","district_code":"1","description":"descrp","area_id":10,"area_name":"area 9","active":true},{"id":2,"district_name":"district 2","district_code":"1","description":"descrp","area_id":10,"area_name":"area 9","active":true},{"id":3,"district_name":"district 3","district_code":"1","description":"temp 3","area_id":5,"area_name":"area4","active":true}],"FacilityOccupacies":[{"id":1,"facility_name":"C","description":"Computer facility","active":true},{"id":2,"facility_name":"CA","description":"Adult correctional facility","active":true},{"id":3,"facility_name":"CJ","description":"Juvenile correctional facility","active":true},{"id":4,"facility_name":"GS","description":"Garage for operations support, including vehicle maintenance, repair or fuel depot","active":true},{"id":5,"facility_name":"GP","description":"Garage for parking","active":true},{"id":6,"facility_name":"I","description":"Light industrial facility","active":true},{"id":7,"facility_name":"L","description":"Library","active":true},{"id":8,"facility_name":"M","description":"Medical facilities such as clinics, infirmaries or hospitals","active":true},{"id":9,"facility_name":"N","description":"Non-categorized facility","active":true},{"id":10,"facility_name":"OM","description":"Office buildings where approximately 75% or more of occupants are senior level managers","active":true},{"id":11,"facility_name":"OS","description":"Office building","active":true},{"id":12,"facility_name":"SP","description":"Primary school","active":true},{"id":13,"facility_name":"SS","description":"Secondary school","active":true},{"id":14,"facility_name":"U","description":"University","active":true},{"id":15,"facility_name":"W","description":"Warehouse","active":true}],"FireSprinkler":[{"id":2,"fire_sprinkler":"N","description":"A lack of a fire sprinkler fire suppression system.","active":true},{"id":3,"fire_sprinkler":"P","description":"A partial …Run Code Online (Sandbox Code Playgroud) 我在ASP.NET MVC 3站点中有一个奇怪的验证失败,其中一个文本框接受通过jqueryui选择的日期时间.该网站已经过定制,仅适用于es-ES文化,并且大部分时间都可以使用,但在该文本框中每次使用某个月时验证都会失败.datetime.parse方法适用于除march之外的每个月:
DateTime.Parse("15-feb-2012",CultureInfo.GetCultureInfo("es"), DateTimeStyles.None)
{15/02/2012 0:00:00}
Date: {15/02/2012 0:00:00}
DateTime.Parse("15-ene-2012",CultureInfo.GetCultureInfo("es"), DateTimeStyles.None)
{15/01/2012 0:00:00}
Date: {15/01/2012 0:00:00}
DateTime.Parse("15-abr-2012",CultureInfo.GetCultureInfo("es"), DateTimeStyles.None)
{15/04/2012 0:00:00}
Date: {15/04/2012 0:00:00}
Run Code Online (Sandbox Code Playgroud)
...
除了3月份,每个月都有工作,Marzo用西班牙语...
DateTime.Parse("15-mar-2012",CultureInfo.GetCultureInfo("es"), DateTimeStyles.None)
DateTime.Parse("15-mar-2012",CultureInfo.GetCultureInfo("es"), DateTimeStyles.None)' threw an exception of type 'System.FormatException'
base {System.SystemException}: {"String was not recognized as a valid DateTime."}
Run Code Online (Sandbox Code Playgroud)
任何的想法?
我们在C#程序中使用Oracle存储过程,该程序运行正常,直到我们添加了'v_nameurn'变量.
这是Oracle程序:
create or replace procedure stats_By_Date (
v_SDate IN varchar2,
v_EDate IN varchar2,
v_user IN number,
v_nameurn IN number,
p_cursor OUT SYS_REFCURSOR
) as
BEGIN
OPEN p_cursor FOR
select T1.Staff_No,
T3.Title,
T2.Verno,
To_char(T1.Response_dt, 'DD/MM/YYYY'),
T5.Response,
T6.Forenames||' '||T6.Surname
from TOU.Users_version_link T1,
TOU.Version T2,
TOU.name T3,
TOU.Admin_Access T4,
Tou.CV_Response T5,
corp.wforce_employee@remote_DWLive T6
where T1.Version_urn=T2.Urn
and T1.Name_urn= T3.urn
and T3.urn = T4.name_urn
and T1.Response_urn=T5.urn
and T1.staff_no=T6.Staff_Number
and Trunc(T1.Response_dt) >= To_date(v_Sdate, 'DD/MM/YYYY')
and Trunc(T1.Response_dt) <= To_date(v_EDate, 'DD/MM/YYYY')
and T4.Staff_No = v_user
and T3.urn …Run Code Online (Sandbox Code Playgroud) 当我将DTSX文件部署到生产服务器时,我遇到了问题.
在DTSX文件中,我通过Web Service TaskWebService使用WebService,要求提供必须从本地路径下载的WSDL文件.
我的机器没有问题,但在生产服务器中它不会存在.
我认为要求我的客户授予我进入其生产服务器的权限并创建一个用于存储该wsdl文件的文件夹是不可接受的.另外,当wsdl发生变化时会发生什么?我将不得不再次部署我的dtsx包,并替换服务器中的wsdl文件.所以我认为这不是一个选择.
所以,我的问题是,
有没有办法避免使用带有wsdl especifcation的物理文件,或者可以将其部署在dtsx部署包中,或者将其保存在变量中,或者我还能做什么呢?
我一直在寻找,但仍然没有运气.
任何帮助将非常感激.
我遇到了SSIS包的问题.
正如大多数人所知,xls文件每张被限制为65,536行乘256列.因此,当查询提取超过记录限制(65,536)时,Excel目标步骤失败.
我收到以下错误消息.
Error: 0xC0202009 at Calidad VIDA, Excel Destination [82]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
Error: 0xC0209029 at Calidad VIDA, Excel Destination [82]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Excel Destination Input" (93)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Excel Destination Input" (93)" specifies failure on error. An error occurred on the specified object of the specified component. There …
如何将单个参数中的多个值传递给Informix 中的存储过程?。
这是一个常见问题,但我没有看到有关 informix 的信息。
我找到了一个帖子,但它对我不起作用,应该是数据库的版本还是我遗漏了什么?
我正在尝试执行此操作 WHERE X IN (SELECT Y FROM TABLE(PARAM))
编辑:
这是我试图做的一个例子。
CREATE PROCEDURE test_hector
(
C LIST( SET (CHAR(10) NOT NULL ) NOT NULL)
)
RETURNING CHAR(10) AS C, CHAR(10) AS CVE, CHAR(50) AS DESC;
DEFINE vColumna like tclaves.columna;
DEFINE vClave like tclaves.clave;
DEFINE vdescve like tclaves.descve;
FOREACH
select columna, clave, descve
INTO vColumna, vClave,vdescve
from tclaves
where columna in (SELECT * FROM TABLE(C))
RETURN vColumna, vClave,vdescve WITH RESUME;
END FOREACH …Run Code Online (Sandbox Code Playgroud) 我无法更好地表达我在标题中提出的问题.
这就是我在寻找的东西.
我有一个特定的对象我有一个无序列表DateTime和String属性.
String属性有这样的值(注意它是一个字符串,而不是一个数字,它总是有K字母,我应该只用数字排序):
K07000564,
K07070000
K07069914
K07026318
K07019189
Run Code Online (Sandbox Code Playgroud)
我想要的是订购List By Date ...但是当订购时,如果String值存在于具有其他Date的集合中,我想在此之后订购它们(By Date也在IdFinders的miniGroup中)......然后继续订购......
像这样的东西:
编辑
我编辑了这个例子来澄清IdFinder的排序是行不通的......我需要按日期订购..如果按日期排序,IdFinder在集合中不止一次出现应该在最后一个之后显示它们,然后每个idfinder继续订购其余的等等
ID Date
**K07000564** Today
K07000562 Yesterday
K07000563 The Day Before Yesterday
**K07000564** The day before the day before yesterday
Run Code Online (Sandbox Code Playgroud)
应该
K07000564 Today
K07000564 The day before the day before yesterday
K07000562 Yesterday
K07000563 The Day Before Yesterday
Run Code Online (Sandbox Code Playgroud)
我之前在一个项目中在SQL Server 2008中实现了这一点,具体如下:
WITH B
AS
(
SELECT
ID,
MAX(DATE_COLUMN) DATE_COLUMN,
ROW_NUMBER() OVER (ORDER BY MAX(DATE_COLUMN) DESC) RN
FROM MYTABLE
GROUP BY …Run Code Online (Sandbox Code Playgroud) 我正在B Record为IRS 1099 创建一个列表(以防其他人熟悉该过程).有两个标题记录(T Record and A Record)这是文件的两个第一行,它们也需要行计数,所以当我创建我的时候B Record,我希望它从第3行开始,因为前两行是固定的,但是我无法在我的select语句中使用它.
- 挂行号
select right('00000000' ++ cast(row_number () over (order by column1) as varchar (10)),8)
Run Code Online (Sandbox Code Playgroud)
--results
00000001
00000002
00000003
00000004
00000005
00000006
Run Code Online (Sandbox Code Playgroud)
- 想;
00000003
00000004
00000005
00000006
Run Code Online (Sandbox Code Playgroud)
谢谢,